quiz score calculator c 2b 2b

Solutions on MaxInterview for quiz score calculator c 2b 2b by the best coders in the world

showing results for - "quiz score calculator c 2b 2b"
Josué
03 Feb 2019
1#include <iostream>
2using namespace std;
3int main()
4{
5int item[5]; //Declares an array item of five components.
6int sum, counter;
7cout<<"Enter five numbers: ";
8sum = 0;
9for (counter = 0; counter <5; counter++)
10{
11
12cin>>item[counter];
13sum = sum + item[counter];
14}
15cout<<endl;
16cout<<"The sum of the numbers is:"<<sum<<endl;
17cout<<"The number in reverse order are: ";
18//Print the numbers in reverse order
19
20for(counter=4;counter >=0;counter--)
21    cout<<item[counter]<<" ";
22cout<<endl;
23return 0;
24}
similar questions
queries leading to this page
quiz score calculator c 2b 2b