forked from rafiibrahim8/Vault-Blaster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
45 lines (43 loc) · 1.04 KB
/
main.c
File metadata and controls
45 lines (43 loc) · 1.04 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
#include<stdio.h>
#include<conio.h>
#include<windows.h>
void noKey(void);
void havKey(void);
void about(void);
int main()
{
int x=1,y;
char choice;
SetConsoleTitle("Vault Blaster");
system("COLOR 0A");
while(x)
{
do
{
y=0;
printf("Choose a option:\n\t1. I don\'t know the key.\n\t2. I know the key.\n\n\t3. About the program.");
char choice=getch();
if(choice=='1')
noKey();
else if(choice=='2')
havKey();
else if(choice=='3')
about();
else
{
printf("\a\n\nInvalid Selection.\n\n");
y=1;
}
}
while(y);
printf("\n\nDo you want to start over?\n\tY=Yes\n\tAnyKey=No");
choice=getch();
if(!(choice=='Y' || choice=='y'))
x=0;
else
printf("\n\n");
}
printf("\n\n\t\tPress a key to EXIT.");
getch();
return 0;
}