Wednesday 20 February 2013

A program to enter integer type value in array and then print the value in reverse order


#include<iostream.h>
using namespace std;
main( )
{
int  abc[4], i;
for(i=0;i<=3;i++)
{
cout<<"enter the values";
cin>>a[i];
}
cout<<"output in reverse order";
for(i=3;i>=0;i--)
cout<<abc[i]<<endl;
}

No comments:

Post a Comment