Untitled
unknown
plain_text
2 years ago
1.1 kB
9
Indexable
#include<iostream>
using namespace std;
int main(){
int student;
int id;
string name;
int age;
string contact;
cout<<"\t\t>>>>>Input Student Information<<<<<<"<<endl<<endl;
cout<<"\t\t How many student do you want to Input:";
cin>>student;
for(int i=0;i<=student;i++){
cout<<"\t Student No"<<i+i<<endl;
cout<<"\n\t\t\"Enter the student ID:";
cin>>id;
cout<<"\n\t\t\"Enter the student Name:";
cin>>name;
cout<<"\n\t\t\"Enter the student age:";
cin>>age;
cout<<"\n\t\t\"Enter the student contact:";
cin>>contact;
cout<<endl;
}
cout<<"\t\t>>>>>OutPut student imformation<<<<<"<<endl<<endl;
for(int i=1;i<=student;i++){
cout<<"\t\t The student No:"<<i<<endl;
cout<<"\t\t The student ID:"<<id<<endl;
cout<<"\t\t The student Name:"<<name<<endl;
cout<<"\t\t The student Age:"<<age<<endl;
cout<<"\t\t The student Contact:"<<contact<<endl;
}
return 0;
}Editor is loading...
Leave a Comment