intage1 was not declared in this scope c 2b 2b

Solutions on MaxInterview for intage1 was not declared in this scope c 2b 2b by the best coders in the world

showing results for - "intage1 was not declared in this scope c 2b 2b"
Alan
28 Mar 2018
1#include <iostream>
2using namespace std;
3int main ()
4{
5	intage1,intage2;
6	intage1 = 18;
7	intage2 = 15;
8	int TotalAge;
9	int AverageAge;
10	cout << "Please enter the sge of student 1:";
11	cin >> age1;
12	cout << "Please enter the age of student 2:";
13	cin >> age2;
14	Totalage = age1 + age2;
15	AverageAge = Totalage / 2;
16	cout << "The averageage of the class:";
17	<< AverageAge;
18}
19