Programming
Dear Friends! You can find all types of programs in this blog which you wished for.
c++
c++
c++
Sunday, 14 September 2014
Simple Adding program using array
#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int arr[5],i;
for(i=0; i<5; i++)
{
cout<<"Enter the values "<<endl;
cin>>arr[i];
}
for(i=0; i<5; i++)
{
cout<<"Values at index "<< i <<" is ="<<arr[i]<<endl;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment