C++ one less than numbeR PROGRAM

Document Sample
C++ one less than numbeR PROGRAM Powered By Docstoc
					# include <iostream.h>
# include <stdlib.h>

main()
{

int a[10];

for(int i = 0; i<10; i ++)
{

cin>>a[i];

}

cout<<"The values entered are "<<"\t";

for(int i = 0; i<10; i ++)
{


if(i< 9)   // this check will print , one less than numbers
cout<<a[i]<<", "<<endl;
else
cout<<a[i];
}

system("PAUSE");
}

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:2
posted:9/22/2012
language:simple
pages:1
Description: C++ one less than numbeR PROGRAM