| KhaledSH (10) | |
|
hey all :D I want to write this program using (For loop) "Write a program that gives you the time table (from 1 to 10) of any number the user inputs." can anyone help me?? how is the loop format going to be?? waiting for your help guys :D | |
|
|
|
| Raezzor (277) | |
| Have you written any code? Or even a flowchart/pseudo code version? | |
|
|
|
| KhaledSH (10) | |||
|
no I didnt write any code yet. but i just want to know how the loop going too look like. but let me try
| |||
|
|
|||
| Thumper (376) | |
|
Looks like you need to read up on control structures. http://www.cplusplus.com/doc/tutorial/control/ Read the bit about for loops. It should explain to you exactly how to set one up (and then some.) | |
|
|
|
| KhaledSH (10) | |
|
oh so i cant leave the condition empty, ok if i dont want to make a condition for the entered number, for example the user can write any number he want, what should i write?? and can you please solve me this problem cause im having an exam really soon =( | |
|
|
|
| ne555 (4385) | |
|
The condition is for the `for loop'. If the condition is met, the loop executes and the condition is check again. If your problem is just the syntax, provide pseudo-code and I'll translate it for you. ¿Do you want us to solve your exam too? | |
|
|
|
| usandfriends (188) | |||
| |||
|
|
|||