-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathage.c
More file actions
30 lines (25 loc) · 694 Bytes
/
age.c
File metadata and controls
30 lines (25 loc) · 694 Bytes
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
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
int main() {
int age;
printf("\nEnter your age: ");
scanf("%d",&age);
if(age >= 18){
printf("\nYou are signed up!");
} else if(age == 0){
printf("\nYou can't sign up! You were just born!");
} else if(age < 0){
printf("\nYou haven't been born yet!");
} else {
printf("\nYou are too young to sign up!");
}
return 0;
}
// Bro Code. (2021.10.7.). C Programming Full Course for free [Video]. YouTube. https://www.youtube.com/watch?v=87SH2Cn0s9A