WRITE A PROGRAM TO ACCEPT THE NAME AND CLASS OF A STUDENT AND DISPLAY A WELCOME MESSAGE. 1
Answers
Answered by
1
Answer:
/Program for accept and display
#include <stdio.h>
#include <conio.h> //console input output header file
void main()
{
clrscr(); //*clearscreen function ~ from conio.h
char name[25]; //charachter variable name with size 25
printf("Enter your name:\t"); //accepting name
scanf("%c", &name); //storing name in our variable
printf("\nHi! %c",name); //displaying name
getch(); //get charachter function from conio.h
}
O/P:
Enter your name: Kabir
Hi! Kabir
Answered by
0
Answer:
here is your answer
please mark me the brainleist
Attachments:
Similar questions