Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.21 KB | None | 0 0
  1. /*
  2.  
  3.     Author:          Amna Alshaerr
  4.     Department       key skills
  5.  */
  6.  
  7.     #include <iostream>
  8.  
  9.     using namespace std;
  10.  
  11.     int main () {
  12.     int mark1, mark2, mark3;
  13.  
  14.     //input
  15.  
  16.     cout << "enter mark1: /n";
  17.     cin >> mark1;
  18.  
  19.     cout << "enter mark2: /n";
  20.     cin >> mark2;
  21.  
  22.     cout << "enter mark3: /n";
  23.     cin >> mark3;
  24.  
  25.     //output
  26.     cout << "/n-------------------------------------------------";
  27.     cout << "/n the marks are: ";
  28.     cout << mark1;
  29.     cout << " ";
  30.     cout << mark2;
  31.     cout << " ";
  32.     cout << mark3;
  33.     cout << " ";
  34.     cout << "/n-------------------------------------------------";
  35.  
  36.     string subject1, subject2, subject3;
  37.  
  38.     //input
  39.  
  40.     cout << "enter subject1: /n";
  41.     cin >> subject1;
  42.  
  43.     cout << "enter subject2: /n";
  44.     cin >> subject2;
  45.  
  46.     cout << "enter subject3: /n";
  47.     cin >> subject3;
  48.  
  49.     //output
  50.  
  51.      cout << "/n-------------------------------------------------";
  52.     cout << "/n the subject are: ";
  53.     cout << subject1;
  54.     cout << " ";
  55.     cout << subject2;
  56.     cout << " ";
  57.     cout << "subject3";
  58.     cout << " ";
  59.     cout << "/n-------------------------------------------------";
  60.  
  61.     return 0;
  62.  
  63.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement