-
October 19th, 2012, 10:11 AM
#1
output of the program
can any tell me the how to write the java code for below requirement
requirement: print numbers from 1 to 100 and
in the out put print , if (number %3==0) print "fizz" and if (number %5==0) print "buzz" and if (number %3*5==0) print "fizzbuzz" .
the out put is like below:
1
2
fizz
4
buzz
.
.
.
14
fizzbuzz
........i want out put like this can any one tell me how to write the code for above requirement
thanks
mahesh
-
October 19th, 2012, 12:51 PM
#2
Re: output of the program
We won't do your homework for you but if you show some effort and ask a specific question we will help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|