Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // romashka.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- int x;
- cout << "enter x: " << endl;
- cin >> x;
- if (x == 5)
- {
- cout << "x equals to 5" << endl;
- }
- else {
- if (x > 5)
- {
- cout << "x more than 5" << endl;
- }
- else {
- cout << "x less than 5" << endl;
- }
- }
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement