Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Amna Alshaerr
- Department key skills
- */
- #include <iostream>
- using namespace std;
- int main () {
- int mark1, mark2, mark3;
- //input
- cout << "enter mark1: /n";
- cin >> mark1;
- cout << "enter mark2: /n";
- cin >> mark2;
- cout << "enter mark3: /n";
- cin >> mark3;
- //output
- cout << "/n-------------------------------------------------";
- cout << "/n the marks are: ";
- cout << mark1;
- cout << " ";
- cout << mark2;
- cout << " ";
- cout << mark3;
- cout << " ";
- cout << "/n-------------------------------------------------";
- string subject1, subject2, subject3;
- //input
- cout << "enter subject1: /n";
- cin >> subject1;
- cout << "enter subject2: /n";
- cin >> subject2;
- cout << "enter subject3: /n";
- cin >> subject3;
- //output
- cout << "/n-------------------------------------------------";
- cout << "/n the subject are: ";
- cout << subject1;
- cout << " ";
- cout << subject2;
- cout << " ";
- cout << "subject3";
- cout << " ";
- cout << "/n-------------------------------------------------";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement