Thursday, May 31, 2018

WRITE A PROGRAM TO DISPLAY 10 NOS IN ORDER.

WRITE A PROGRAM TO DISPLAY 10 NOS IN ORDER.

#include <stdio.h>
#include <conio.h>
#include <iostream.h>

int main ()
{
int a[10],i;
clrscr();
cout << "Enter TEN values:";
      for(i=0;i<10;i++)
      {
cin >> a[i];
      }
cout << "Value are:";
       for(i=0;i<10;i++)
       {
cout << a[i] << "\n";
       }
getch();
return 0;

}

0 Please Share a Your Opinion.: