[ create a new paste ] login | about

Link: http://codepad.org/5KL8GHaz    [ raw code | output | fork ]

pjvangemmeren - C++, pasted on May 16:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;

int testScore;
char grade;

cout << "Welcome. Input your numerical test score and I will give you your letter grade."
cin testScore
cout << "Your original test score was\n << testScore << and your letter grade is\n << grade << .
    if (testScore < 60){
        grade = F
    else if (


Output:
1
2
Line 9: error: missing terminating " character
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: