Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- string firstName, lastName, dateOfBirth, section; //declare the form data variable
- int rolNumber;
- //take the input part
- cout<< "Enter First name: ";
- cin>> firstName; //take the input of first name
- cout<< "Enter Last name: ";
- cin>> lastName; //take the input of last name
- cout<< "Enter dateOfBirth: ";
- cin>> dateOfBirth; //take the input of first name
- cout<< "Enter roll: ";
- cin>> rolNumber; //take the input of first name
- cout<< "Enter section name: ";
- cin>> section; //take the input of first name
- //for give a space between input and result
- cout<< endl << endl;
- //print the input data here
- cout<< "First Name: "<< firstName << endl;
- cout<< "Last Name: "<< lastName << endl ;
- cout<< "Date of Birth: " << dateOfBirth << endl;
- cout<< "Roll Number: " << rolNumber << endl;
- cout<< "Section: " << section << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement