write a c++ program to display three statement about your school on separate line
Answers
Answered by
0
Answer:
#include <iostream>
using namespace std;
struct student
{
char name[50];
int roll;
float marks;
};
int main()
{
student s;
cout << "Enter information," << endl;
cout << "Enter name: ";
cin >> s.name;
cout << "Enter roll number: ";
cin >> s.roll;
cout << "Enter marks: ";
cin >> s.marks;
cout << "\nDisplaying Information," << endl;
cout << "Name: " << s.name << endl;
cout << "Roll: " << s.roll << endl;
cout << "Marks: " << s.marks << endl;
return 0;
}
Similar questions
Math,
2 months ago
Biology,
2 months ago
Social Sciences,
4 months ago
English,
10 months ago
Physics,
10 months ago