HackerrankPracticeProblems
HackerrankPracticeProblems copied to clipboard
JAVA : Java Loops I
Write your solution to this JAVA problem of hackerrank:- Problem link : Java Loops I
hey can I contribute to this issue
Heyy.. I can contribute to this issue
Since I can assign only one issue to a contributor at a time, and have assigned an issue to @adityjoshi , I'm assigning this issue to @sanvisharma003.
@sanvisharma003 are you a hacktoberfest contributor?
yes.. i am.. actually its the first time i am taking part .. thankyou for assigning..
is this issue for hacktoberfest?
@sanvisharma003 Yes, you may please go ahead with your contribution.
Hey, Can I contribute to this issue?
@RishitaGangwal This issue is assigned to @sanvisharma003 . You can raise a new issue for another problem. Thanks!
Can I contribute to your issues?
Hey @Uday-kiran9147 Thanks for asking. You may please raise a new issue or claim an issue which is not assigned to anyone.
https://github.com/sanvisharma003/HackerrankPracticeProblems/blob/main/hackerrank%20JAVA%20loop%201
i created the code and tried to make a PR but i think due to some issue you haven't recieved it.. please do check once.
Sure.
On Mon, 3 Oct 2022, 1:30 pm Sanvi Sharma, @.***> wrote:
https://github.com/sanvisharma003/HackerrankPracticeProblems/blob/main/hackerrank%20JAVA%20loop%201
i created the code and tried to make a PR but i think due to some issue you haven't recieved it.. please do check once.
— Reply to this email directly, view it on GitHub https://github.com/Riddhi9570/HackerrankPracticeProblems/issues/24#issuecomment-1265073595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVC2D7VOX335E3U5UQL4A4LWBKHATANCNFSM6AAAAAAQZA2KQ4 . You are receiving this because you were mentioned.Message ID: @.***>
Hey! @Riddhi9570 Assign me this issue, with #Hactoberfest https://www.hackerrank.com/challenges/java-substring/problem?isFullScree
Hey, @Uday-kiran9147 this hackerrank problem is already present in the repo.
Hey ! @Riddhi9570 Assign me this issue with #Hacktoberfest I since those are missing and not assign to anyone https://www.hackerrank.com/challenges/java-bigdecimal/problem?isFullScreen=true https://www.hackerrank.com/challenges/java-primality-test/problem?isFullScreen=true https://www.hackerrank.com/challenges/java-biginteger/problem?isFullScreen=true
can you assign this issue to me ?
class FactorialExample2{
static int factorial(int n){
if (n == 0)
return 1;
else
return(n * factorial(n-1));
}
public static void main(String args[]){
int i,fact=1;
int number=6;//It is the number to calculate factorial
fact = factorial(number);
System.out.println("Factorial of "+number+" is: "+fact);
}
}
Explain this step by step please