Friday, March 9, 2012

Program to print negative no.

//Program to print negative no.
#include<stdio.h>
#include<conio.h>
main()
{
      int i,n;
      printf("Enter any no  ");
      scanf("%d",&n);
      for(i=1;i<=n;i++)
      {
       printf("%d\n",-i);
       }
       getch();
       }

No comments:

Post a Comment