int main()
{
char ch;
printf("Enter your gender:");
scanf("%c", &ch);
printf("Your gender is:%c",ch);
return 0;
}
Output of program
Enter your gender:M
Your gender is:M
This blog assists in mastering C and C++ programming skills from basics to advanced levels.
No comments:
Post a Comment