Its all about ‘C’ language

WAP to input rollno, name and gender of a student and show it.

#include<stdio.h>

#include<conio.h>

int main()

{

int rollno;

char gender;

char name[21];

printf(“Enter rollno : “); scanf(“%d”,&rollno);

printf(“Enter Name : “);fflush(stdin);scanf(“%[^\n]”,&name);

printf(“Enter Gender [M/F] ? “);fflush(stdin);scanf(“%c”,&gender);

printf(“roll no is %d, Name is %s and Gender is %c”,rollno,name,gender);

getch();

}