We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Conditional Statements
- Discussions
Conditional Statements
Conditional Statements
Sort by
recency
|
831 Discussions
|
Please Login in order to post a comment
int main() { string n_temp; getline(cin, n_temp);
}
int n; cin >> n;
An easier method, with a switch statement, almost all can understand.
(NOTE, THIS IS NOT THE FULL CODE, JUST THE IF STATEMENT WHERE YOU HAVE TO PUT AFTER THE
// Write your code here
COMMENT)