This blog assists in mastering C and C++ programming skills from basics to advanced levels.
Pages
▼
Tuesday, June 14, 2016
C program to read gender character and print it on screen.
#include<stdio.h> 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
No comments:
Post a Comment