include iostream using namespace std double double double rememberMe d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
using namespace std;
double f (double x)
{
double rememberMe = x;
double myImagineNumber = 42;
while (true)
{
if (x < myImagineNumber) {
cout << "try again motherfucker" << endl;
} else if (x == myImagineNumber) {
cout << "you win motherfucker" << endl;
break;
} else {
cout << "try again motherfucker" << endl;
}
}
}
int main()
{
double n;
cout << "input number from 1 to 100" << endl;
cin >> n;
f(n);
}