i am using dev cpp and today i was trying to study . But output is displaying nothing and only display a black dos. It remains black and do not showing any result.
i typed the program thatt i used to type in turbo cpp
include<stdio.h>
include<conio.h>
int main()
{
int n;
n=1;
while(n<=10);
{
printf("%d \n",n);
n++;
}
getch();
}
Last edit: Hamza mughal 2015-02-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am using dev cpp and today i was trying to study . But output is displaying nothing and only display a black dos. It remains black and do not showing any result.
i typed the program thatt i used to type in turbo cpp
include<stdio.h>
include<conio.h>
int main()
{
int n;
n=1;
while(n<=10);
{
printf("%d \n",n);
n++;
}
getch();
}
Last edit: Hamza mughal 2015-02-20
include<stdio.h>
include<conio.h>
int main()
{
int n=1;
while(n<=10)
{
printf("%d \n",n);
n++;
}
getch();
}
LINE 7&8 COMBINED INTO ONE
LINE 9 REMOVED THE CEMICOLON AT THE END
WORKS ON MY Code:Blocs 12.13
Best
Tor E. Syversen, Norway