Menu

Output error ( Please responce Urgent )

2015-02-20
2015-03-02
  • Hamza mughal

    Hamza mughal - 2015-02-20

    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
  • Tor E Syversen

    Tor E Syversen - 2015-03-02

    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

     

Log in to post a comment.