write the program of check of knowledge of date of beginning of Saint Petersburg. In case of the wrong answer of the user, the program should deduce a right answer. Below the recommended type of the screen during performance of program. It should look as follows:-
In which year was St.Petersburg started? Put a number: 1705, then press <Enter>, then the program should answer You were mistaken, Saint Petersburg was started in: 1703.
1
Expert's answer
2012-11-13T07:52:44-0500
#include "iostream" using namespace std;
int main() { int i; & cout <<"In which year was St.Petersburg started? Put a number: "; & cin>>i; & if (i==1703) cout<<"You are right\n" ; else cout<<"You were mistaken, Saint Petersburg was started in: 1703.\n";
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment