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
Why is vsnprintf Not Writing the Same Number of Characters as strncpy Would?
CT1
C++ quine
inherited
VS struct_member_name
find vs at
It complies!
hangman
regex select, find
C++ string format