Write a code in C++ programming language
Create three variables that will hold:
Student Name
Student Id
Current Course Intake
Assign your name, student ID, your current course intake to the three variables created previously.
After presenting the output of the three variables you will present the date of this assignment such as:
The date of this Assignment is: 8-12-2021
#include <iostream>
#include <string>
using namespace std;
void main(){
string studentName="Peter Smith";
string studentId="454554";
string currentCourseIntake="Programming C++";
cout<<"Student Name: "<<studentName<<"\n";
cout<<"Student Id: "<<studentId<<"\n";
cout<<"Current Course Intake: "<<currentCourseIntake<<"\n";
cout<<"The date of this Assignment is: 8-12-2021\n";
cin>>studentName;
}
Comments
Leave a comment