I’m trying to write a program with do..while loop for: list all the numbers from 100 downwards that are dividable by 7 and 5 but not 11.
can you help me?
I’m trying to write a program with do..while loop for: list all the numbers
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code should work, I haven’t tested it or timed it and there are probably better ways of doing it speed wise, but:
Also here is a page with some stuff about do…while if you just need to study about it:
http://www.keil.com/support/docs/1950.htm
Edit (sehe) I couldn’t let my hard work go to waste, could I:
For absolute fun and kicks, here is my pythonist response in C++0x