24 lines
458 B
C
24 lines
458 B
C
/* Name: Garrett Haldrup
|
|
<Labe2_Part1.c>
|
|
Problem: Takes in name and age then outputs name with age in 5 years.
|
|
Certification of Authenticity:
|
|
I certify that this assignment is entirely my own work.
|
|
*/
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
char name[100];
|
|
int age;
|
|
|
|
printf("Enter your name: ");
|
|
scanf("%s", name);
|
|
printf("Enter your age: ");
|
|
scanf("%d", &age);
|
|
|
|
printf("Hi %s! In five years, you will be %d\n", name, age + 5);
|
|
|
|
return 0;
|
|
}
|
|
|
|
|