Created
May 6, 2021 13:28
-
-
Save JonyBepary/eabe17946d7c17e7dc54068de287ffb4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
// make a simple information chart........ | |
char question1, your_name[30], father_name[30], city[30], gander[10]; | |
int postcode, phone_number; | |
printf("Hello, before try this we need some information to you, then you can continue this one, got it? Y/N \n"); | |
question1 = getchar(); | |
getchar(); | |
switch (question1) | |
{ | |
case 'Y': | |
printf("Thanks for responsing us, let's try second step, remenber that you should fill the gape very carefully! %c\n\n", question1); | |
printf("What's is your full name: \n"); | |
fgets(your_name, 30, stdin); | |
printf("What's is your Father name: \n"); | |
fgets(father_name, 30, stdin); | |
printf("What's is your current city: \n"); | |
fgets(city, 30, stdin); | |
printf("give us your postcode: \n"); | |
scanf("%d", &postcode); | |
printf("What's your gander? Male/Female/Custom \n"); | |
scanf("%s", &gander); | |
printf("Give me your phone Number: \n"); | |
scanf("%d", &phone_number); | |
printf("\nHere is your information bellow: \n"); | |
printf("Your Name: %s \nYour Father Name: %s \nYour City: %s \nPostcode: %d \nGander: %s \nMobile Number: %d\n\n", your_name, father_name, city, postcode, gander, phone_number); | |
printf("Thank you for sharing with us you personal information, we will store them. And we will call you back for third step as soon as possible.\n"); | |
break; | |
case 'N': | |
printf("Sorry, you won't agree with us, better luck! %c", question1); | |
break; | |
default: | |
printf("Ops! you pasing wrong value, try again!\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment