0% found this document useful (0 votes)
57 views1 page

Result PDF

The document contains C++ code to input and output student data including registration number, name, obtained marks, total marks, and percentage for three students. It declares variables to store this data, inputs the data from the user, and outputs a header before presumably outputting the stored data in a formatted table.

Uploaded by

Salman Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Result PDF

The document contains C++ code to input and output student data including registration number, name, obtained marks, total marks, and percentage for three students. It declares variables to store this data, inputs the data from the user, and outputs a header before presumably outputting the stored data in a formatted table.

Uploaded by

Salman Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1: #include <iostream>

2: using namespace std;


3:
4: int main()
5: {
6: int r1,r2,r3,omk1,omk2,omk3,tl,tl2,tl3 ;
7: float pr1,pr2,pr3;
8: char nm1,nm2,nm3;
9: cout<<"enter the value of regisstration",
10: cin>>r1>>r2>>r3;
11: cout<<"enter the name ";
12: cin>>nm1>>nm2>>nm3;
13: cout<<"enter the marks";
14: cin>>omk1>>omk2>>omk3;
15: cout<<"enter the total number";
16: cin>>tl1>>tl2>>tl3;
17: cout<<"enter the percentage";
18: cin>>pr1>>pr2>>pr3;
19: cout<<"--------------------------------Student Data----------------------------------";
20: cout<<"Reg#"<</t<<"Name"<</t<<"Obtain marks"<</t<<"Total"<</t<<"marks percentage"<</n;
21:
22:
23: return 0;
24: }

You might also like