This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/C7/ex5.c
2023-10-03 12:16:10 +01:00

16 lines
238 B
C

#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);
}