Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string in;//string in for taking input...
cout<<"Do you want to continue ?"<<endl;
getline(cin,in);//taking input from the user...
if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..
cout<<"OK"<<endl;
else if(in=="No")
cout<<"terminating"<<endl;
else
cout<<"Bad input"<<endl;
return 0;
}
Explanation:
I have taken a string in.
Then taking input from user.
Checking the conditions using if else if ladder.
Answer:
I'm sorry I'd been looking at this question a while and I can't seen to figure it out.
Answer:
Statement to get input values:-
cin>>birthMonth>>birthYear;
Statement for output:-
cout<<birthMonth<<"/"<<birthYear<<endl;
Explanation:
The statements are in C++ language.
To get the input we use cin in C++ with >>.
We are taking the input of birthMonth and birthYear.
For printing we use cout .We have printed birthMonth then slash and then birthYear.
Answer:
5. iOS and Android are some popular OS’.
Explanation: