Advertisement
shopnilSS

Random

May 25th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     string firstName, lastName, dateOfBirth, section; //declare the form data variable
  5.     int rolNumber;
  6.  
  7.     //take the input part
  8.     cout<< "Enter First name: ";
  9.     cin>> firstName; //take the input of first name
  10.  
  11.     cout<< "Enter Last name: ";
  12.     cin>> lastName; //take the input of last name
  13.  
  14.     cout<< "Enter dateOfBirth: ";
  15.     cin>> dateOfBirth; //take the input of first name
  16.  
  17.     cout<< "Enter roll: ";
  18.     cin>> rolNumber; //take the input of first name
  19.  
  20.     cout<< "Enter section name: ";
  21.     cin>> section; //take the input of first name
  22.  
  23.     //for give a space between input and result
  24.     cout<< endl << endl;
  25.  
  26.     //print the input data here
  27.     cout<< "First Name: "<< firstName << endl;
  28.     cout<< "Last Name: "<< lastName << endl ;
  29.     cout<< "Date of Birth: " << dateOfBirth << endl;
  30.     cout<< "Roll Number: " << rolNumber << endl;
  31.     cout<< "Section: " << section << endl;
  32.  
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement