Hey guys. I'm sure these two programs are really simple, but I'm in my first java programming class and I don't have any programming background. I think I missed the class when we went over this stuff. Anyways, I have to write two programs for homework.
1) Write a program that outputs the product of all the integers between 3 and 7, inclusive, that is, 3*4*5*6*7. Use while loop for this program.
2) Write a program that counts how many multiples of 7 are between 33 and 97, inclusive. Use for loop for this program.
I know how to use the for and while loops and everything, but I'm not sure how to go about writing these programs. Any help would be greatly appreciated. Thanks!
1) Write a program that outputs the product of all the integers between 3 and 7, inclusive, that is, 3*4*5*6*7. Use while loop for this program.
2) Write a program that counts how many multiples of 7 are between 33 and 97, inclusive. Use for loop for this program.
I know how to use the for and while loops and everything, but I'm not sure how to go about writing these programs. Any help would be greatly appreciated. Thanks!
Comment