Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
i wrote this program but it doesnt work
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: i wrote this program but it doesnt work (Read 3136 times)
jarrybarry
Single posting newcomer
Posts: 3
i wrote this program but it doesnt work
«
on:
September 17, 2017, 07:30:51 am »
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;}
}
}
Logged
blauzahn
Almost regular
Posts: 163
Re: i wrote this program but it doesnt work
«
Reply #1 on:
September 17, 2017, 09:26:22 am »
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.
Logged
Jenna
Administrator
Lives here!
Posts: 7255
Re: i wrote this program but it doesnt work
«
Reply #2 on:
September 17, 2017, 10:17:40 pm »
Topic locked because it violates our forum rules.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
i wrote this program but it doesnt work