@utkarsh-shekhar requested changes on this pull request.
Someone has already created a fizz-buzz.java example. Can you please
create any other basic program in java and raise a PR for that? I'll be
happy to merge it! :)
@@ -0,0 +1,23 @@
+import java.util.*;
+public class Fizzbuzz{
public static void main(String[] args){
System.out.println("Enter the number:");
int n=100;
for(int i=1;i<=n;i++){
if(i%5 == 0){
Wrong logic.
For 15, it will print Buzz as the first condition will satisfy and other
else if conditions won't be reached. You should have the last else if with
the check for 3 and 5 to be the very first check.
ohkay! I will take a look in the issues!
Thanks!
With Regards, Mounika Smitha, Amrita University. https://www.amrita.edu/ Blog https://mounika894.wordpress.com/ | Github https://github.com/kallepallimounikasmitha| linkedin https://www.linkedin.com/in/mounika-smitha-kallepalli-09413913a/
On 17 October 2017 at 10:58, Utkarsh Shekhar notifications@github.com wrote: