Computer Science, asked by niranjans8a, 4 days ago

Write a C++ program to display your name and roll number using function. with output ​

Answers

Answered by parthvaishya5
1

Explanation:

#include<iostream.h>

#include<conio.h>

void main()

{

char name[20];

char clas[6];

int roll;

cout<<"nEnter Name:";

cin>>name;

cout<<"nEnter Class:";

cin>>clas;

cout<<"nEnter Rollnumber:";

cin>>roll;

cout<<"nHello!!t"<<name<<"nYour class ist"<<clas<<"nYour rollnumber ist"<<roll;

cout<<"nThank you";

cout<<"nPress any key to continue…";

getch();

}

Similar questions