Tuesday, July 23, 2013

Program to access the marks of 3 students and display it out

#include<iostream.h>
#include<conio.h>
void main()
{
int n[3],i;
cout<<"Enter the marks\n";
for(i=0;i<3;i++)
cin>>n[i];
cout<<The given marks are\n";
for(i=0;i<3;i++)
cout<<"\n"<<n[i];
getch();
}

No comments:

Post a Comment

Popular Posts