-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
71 lines (70 loc) · 2.79 KB
/
main.c
File metadata and controls
71 lines (70 loc) · 2.79 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include<stdio.h>
int main(void)
{
char x,y;
printf("Hey! I can read your mind!!\n");
printf("(Note:don't tell me any thing,\nafter you are done just press Enter.\nnow,Think of a number between 2 to 9\n");
scanf("%c", &y);
printf("Now multiply the number by 9\n");
scanf("%c", &y);
printf("You found two digit!\nNow add this two digit.\nlike 26! 2+6=8\n");
scanf("%c", &y);
printf("then Add 42 with that number\n");
scanf("%c", &y);
printf("then subtract 16 from that number\n");
scanf("%c", &y);
printf("then divide that number by 5\n");
scanf("%c", &y);
printf("multiply that number by itself\n");
scanf("%c", &y);
printf("Look at me & think the number again!!\n");
scanf("%c", &y);
printf("Now you have 49 !!\n");
scanf("%c", &y);
printf("Wanna play again ??\nif yes then enter Y or enter N\n");
scanf("%c", &y);
if (y=='y' || y=='Y') {
printf("Think of a number between 2 to 9\n");
scanf("%c", &y);
printf("Now multiply the number by 9\n");
scanf("%c", &y);
printf("You found two digit!\nNow add this two digit.\nlike 26! 2+6=8\n");
scanf("%c", &y);
printf("multiply that number by itself\n");
scanf("%c", &y);
printf("then subtract 15 from that number\n");
scanf("%c", &y);
printf("then divide that number by 3\n");
scanf("%c", &y);
printf("then Add 50 with that number\n");
scanf("%c", &y);
printf("Look at me & think the number again!!\n");
scanf("%c", &y);
printf("Now you have 72 !!\n");
scanf("%c", &y);
printf("Wanna play again ??\nif yes then enter Y or enter N\n");
scanf("%c", &y);
if (y=='y' || y=='Y') {
printf("Think of a number between 2 to 9\n");
scanf("%c", &y);
printf("Now multiply the number by 9\n");
scanf("%c", &y);
printf("You found two digit!\nNow add this two digit.\nlike 26! 2+6=8\n");
scanf("%c", &y);
printf("multiply that number by 7\n");
scanf("%c", &y);
printf("then Add 17 with that number\n");
scanf("%c", &y);
printf("then divide that number by 4\n");
scanf("%c", &y);
printf("then subtract 40 from that number\n");
scanf("%c", &y);
printf("Look at me & think the number again!!\n");
scanf("%c", &y);
printf("Now you have -20 !!\n");
scanf("%c", &y);
}
}
else
return 0;
}