Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char name[10] = {'\0'};
- char gender[10] = {'\0'};
- char age[10] = {'\0'};
- char city[10] = {'\0'};
- char town[10] = {'\0'};
- char occupation[10] = {'\0'};
- char accept[6] = {'\0'};
- char correct[10] = {'\0'};
- printf("What is your name?");
- scanf("%s", name);
- printf("\nWhat is your gender?");
- scanf("%s", gender);
- printf("\nWhat age are you?");
- scanf("%s", age);
- printf("\nPlease state your city of birth.");
- scanf("%s", city);
- printf("\nName your town of residence.");
- scanf("%s", town);
- printf("\nWhat is your current occupation?");
- scanf("%s", occupation);
- printf("\nPlease tpe accept");
- scanf("%s", accept);
- printf("\n\nYour name is %s.\nYou are %s .\nYou are %s years old.\nYou were born in %s city.\nYou are living in %s.\nYour current occupation is %s \n\n Is this information correct? If so please type Correct.", name, gender, age, city, town, occupation);
- scanf("%s", correct);
- printf("\nYour information is %s. Thank you for submiting your information.", correct);
- getchar();
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement