Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <array>
- using namespace std;
- int passed, phail, grade;
- string cont;
- /*
- Assignment 1 - FUCK THIS GAY EARTH
- */
- void checkGrade(int a){
- if(a > 100){
- return;
- }
- if(a < 50){
- phail++;
- } else {
- passed++;
- }
- cout << "Passed: " << passed << " Failed: " << phail << endl;
- if(passed == 8){
- cout << "RAISE TUITION." << endl;
- }
- }
- int main(){
- while(passed != -1){
- cout << "Enter some grades you fag." << endl;
- cin >> grade;
- checkGrade(grade);
- cout << "Would you like to continue? (y/n)" << endl;
- cin >> cont;
- if(cont == "n"){
- cout << "Bye." << endl;
- return 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment