123456789101112131415161718
#include <iostream> #include <string> using namespace std; int main() { int grades[6] = {50, 60, 70, 80, 90, 100}; string studentname; cout <<"Enter student name" << endl; cin >> studentname; if(studentname==justin) cout <<"Justins grade is: " << grades[0] << endl; return 0; }
if(studentname==justin)
if(studentname == "justin")