Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // main.cpp
- // grade.cpp
- //
- // Created by Örvar Blær Guðmundsson on 01/09/2015.
- // Copyright (c) 2015 Örvar Blær Guðmundsson. All rights reserved.
- //
- #include <iostream>
- using namespace std;
- int main()
- {
- int a;
- double b;
- double c;
- cout << "How many exercises to input: ";
- cin >> a;
- if (a <= 0)
- {
- cout << "Input at least one exercise!";
- }
- else
- {
- do {
- cout << "Score received for exercise 1: " << endl;
- cin >> b;
- cout << "Total points possible for exercise 1: " << endl;
- cin >> c;
- }
- while (a <= 0); {
- cout << "Total points possible for exercise 2: " << endl;
- cin >> b;
- }
- return 0;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement