Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
assignment
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; int main() { int score; cout << "enter score"endl; cin>>score; if((score<0)||(score>100)) cout<<"invalid score!"<<endl; else if(score<=39) cout <<"failed!"<<endl; else if(score<=40-44) cout<<"passed E"<<endl; else if(score <=45-49) cout<<"passed D"<<endl; else if(score<=50-54) cout<<"fair CD"<<endl; return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Say if number is prime and give its factors
For NULL-embedded strings, CStringT::Find() produces what you may not expect
MyCodeWindows
MSVC noexcept - works
xxx
thread-destructor
throwing an exception containing a unique_ptr is dangerous
SO typeindex pretty_name
Regex failure
Strings
Please log in to post a comment.