Q. Print 1-10 in reverse order ?

THE OUTPUT WOULD BE

 
#include<stdio.h>
#include<conio.h>
  void main( )
  {    clrscr( );
        int i;
        for(i=10;i>=1;i--)
        printf("%d\n",i);
        getch( );
  }

No comments:

Post a Comment