User forums > General (but related to Code::Blocks)
i wrote this program but it doesnt work
(1/1)
jarrybarry:
i'm pretty sure this should work but its not
#include <stdio.h>
main()
{
int num;
int i;
printf(" How many number do you want to see");
scanf(" %d", &num);
for(i=1; i<10; i++);
{
printf("Counting up....%d\n\n" ,i);
if (i== num)
{break;}
}
}
blauzahn:
Please be aware, that this site is not intended to be a general programming help.
http://forums.codeblocks.org/index.php/topic,9996.0.html
Thank you.
Jenna:
Topic locked because it violates our forum rules.
Navigation
[0] Message Index
Go to full version