23 lines
601 B
C
23 lines
601 B
C
#include <cs50.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
|
|
{
|
|
string name = get_string("Name: ");
|
|
int age = get_int("Age: " );
|
|
string phone = get_string("Phone number: ");
|
|
string location = get_string("what's your location? " );
|
|
// Correct Version of This program is
|
|
// int age = get_int("Age: ");
|
|
// int phone = get_int("Phone: ")";"
|
|
// Location is correct on the above program so its okay.
|
|
|
|
// printf("Name:, %s\n", name);
|
|
// printf("Age:, %s\n", age);
|
|
// printf("Location:, %s\n", location);
|
|
|
|
printf("New Contacts: %s, %i, lives in %s, and can be reached at %s\n", name, age, location, phone );
|
|
|
|
}
|