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
asock
print adapted struct
Removing __unaligned specifier partial solution
vector destruction - visual studio
constmsvc
Enum Class Comparisons
pi
amusing overload choice
Cross-platform multithreading minimal example (g++ and cl.exe)
test