move exercises, lecture examples, labs into subfolders
This commit is contained in:
15
Exercises/C7/ex5.c
Normal file
15
Exercises/C7/ex5.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
char name[200] = { 0 };
|
||||
int age = 0;
|
||||
|
||||
printf("What is your name? ");
|
||||
scanf("%s", name);
|
||||
|
||||
printf("What is your age? ");
|
||||
scanf("%ud", &age);
|
||||
|
||||
printf("Hello %s\nYou are %d years old\n", name, age);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user