-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrays.cpp
More file actions
33 lines (28 loc) · 742 Bytes
/
Arrays.cpp
File metadata and controls
33 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
using namespace std;
int main()
{
// Arrays in C++
// Simple Program Take MArks as Input and Print them
int marks[4];
cout << "Enter the Marks for English , Hindi , Maths and Science : " << endl;
cin >> marks[0] >> marks[1] >> marks[2] >> marks[3];
cout << "The Marks of English is " << marks[0] << endl;
cout << "The Marks of Hindi is " << marks[1] << endl;
cout << "The Marks of Maths is " << marks[2] << endl;
cout << "The Marks of Science is " << marks[3] << endl;
;
return 0;
}
/*
Output :
Enter the Marks for English , Hindi , Maths and Science :
45
25
36
45
The Marks of English is 45
The Marks of Hindi is 25
The Marks of Maths is 36
The Marks of Science is 45
*/