Pages

Monday, January 2, 2012

C Programming of a infinite loop


/*infinite loop*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
    int n=-5;
    while (n!=0)
    {
          printf("%d \t",n);
          n--;
    }
    system("pause");
    return 0;
}

No comments:

Post a Comment