Computer Science, asked by mdyashinahmadmdyashi, 23 hours ago

WRITE A PROGRAM TO ACCEPT THE NAME AND CLASS OF A STUDENT AND DISPLAY A WELCOME MESSAGE. 1​

Answers

Answered by IIGoLDGrAcEII
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 ajaykumarsaha07
0

Answer:

here is your answer

please mark me the brainleist

Attachments:
Similar questions