Write a c++ program to request the student registration number, the student name, the course and the age, and display them all to the user
//Write a c++ program to request the student registration number, the student name, the course and the age,
// and display them all to the user
#include <iostream>
using namespace std;
int main()
{
int regNo,age;
char name[50],course[50];
cout<<"\t\t*********************************"<<endl;
cout<<"\t\tEnter the student information"<<endl;
cout<<"\t\t______________________________"<<endl;
//Request the the student registration number, the student name, the course and the age
cout<<"Enter the student Registration number: "; cin>>regNo;
cout<<"Enter the Student Name: "; cin>>name;
cout<<"Enter the Course: "; cin>>course;
cout<<"Enter the student age: "; cin>>age;
//display the student inputs all to the user
cout<<"\n\nStudent Registration\t\tStudent Name\tCourse\t\tAge"<<endl;
cout<<regNo<<"\t\t\t\t"<<name<<"\t\t"<<course<<"\t"<<age;
return 0;
}
Comments
Leave a comment