Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
students grade
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; int main() { int score; cout<<"enter the students score"<<endl; cin>>score; if((score<0)||(score>100)) cout<<"thi is an invalid score!"<<endl; else if(score<=39) cout<<"the students grade is F(failed!)"<<endl; else if (score <=44) cout<<"the students grade is E(fair!)"<<endl; else if (score <=49) cout<<"the students grade is D(pass!)"<<endl; else if (score <=59) cout<<"the students grade is C(Credit!)"<<endl; else if (score <=69) cout<<"the students grade is B(very Good!)"<<endl; else {cout<<"the students grade is A(Excellent!)"<<endl; cout<<"Congratulations! you've won a scholarship!"<<endl; } return 0; }
run
|
edit
|
history
|
help
0
C++ standard violation: [templates][explicit instantiation][access checking]
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
hangman
std::is_same doesn't check for calling convention
amusing overload choice
MSVC_example_GetAllocLength
lab1
kkk
hangman
C++ standard library formatted input hexadecimal float without prefix or exponent test case