daily pastebin goal
26%
SHARE
TWEET

arrayTNG

tonygms3 Nov 21st, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int i;
  5.     int num[9]={1,2,3,4,5,6,7,8,9,10};
  6. //    printf("Ascending Order\t");
  7.     for(i=0;i<10;i++)
  8.     {
  9.  
  10.         //printf("Ascending Order\t\tDescending Order");
  11.         printf("%d\t",num[i]);
  12.     }
  13. //    printf("\tDescending Order\n");
  14.     for(i=9;i>=0;i--)
  15.     {
  16.         printf("%d\t",num[i]);
  17.     }
  18.  
  19.  
  20.  
  21.     return 0;
  22. }
RAW Paste Data
Top