#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char answer;
char *status = "single";
printf("Are you married(Y/N)?\n");
scanf("%c", &answer);
if (answer == 'Y') {
status = "married";
}
printf("Your martial statusis %s.", status);
return 0;
}
Comments
Leave a comment