-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.c
More file actions
54 lines (48 loc) · 1.38 KB
/
test.c
File metadata and controls
54 lines (48 loc) · 1.38 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
//suck my cock daniel
#include <stdio.h>
#include <string.h>
#define SIZE 100
char password[SIZE];
int error = 0;
void selection_menu () {
char selection;
printf("How to create a program? \n");
do {
printf("Choose one of the two options: A or B: ");
error += scanf("%c", selection);
if( selection == 'A' || selection == 'B') {
printf("Lmao sonnnn I don't have an idea at all on how to program anything... \n");
break;
} else if ( selection == 'B' || selection == 'b') {
printf("What you still doing here? \n");
break;
} else {
printf("Invalid command. \n");
}
} while (1);
}
char assign_password () {
printf("Enter dick length: ");
error += scanf(" %[^\n]s", password);
return password;
}
void change_password () {
printf("Enter new password: ");
error += scanf(" %[^\n]s", password);
}
int main () {
printf("Your password is %s \n", assign_password());
printf("You want to change your password? (Y/N): ");
int input;
error += scanf("%c", input);
if (input == 'Y' || input == 'y') {
change_password();
printf("Success!");
} else if (input == 'N' || input == 'n') {
printf("Creating 1000 instances of Bonzi buddy...");
} else {
printf("You fucking muppet");
selection_menu();
}
return 0;
}