Search
 
SCRIPT & CODE EXAMPLE
 

CPP

intage1 was not declared in this scope C++

#include <iostream>
using namespace std;
int main ()
{
	intage1,intage2;
	intage1 = 18;
	intage2 = 15;
	int TotalAge;
	int AverageAge;
	cout << "Please enter the sge of student 1:";
	cin >> age1;
	cout << "Please enter the age of student 2:";
	cin >> age2;
	Totalage = age1 + age2;
	AverageAge = Totalage / 2;
	cout << "The averageage of the class:";
	<< AverageAge;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: write c++ code using glbegin and gland() function 
Cpp :: operator overloading 
Cpp :: how to write string in c++ 
Cpp :: online c++ compiler 
Cpp :: c++ projects 
Cpp :: turn github into vscode 
Cpp :: subsequence 
Cpp :: cin in c++ 
Cpp :: how to write hello world c++ 
Cpp :: for statement in c++ 
Cpp :: loop in c++ 
Cpp :: math in section latex 
Cpp :: can derived class access private members 
Cpp :: hello world cpp 
Cpp :: create a bitset of 1024 bits, 
C :: stop redis server 
C :: rename c 
C :: golang loop through array 
C :: C overwrite last line 
C :: tainted love 
C :: binary search in c 
C :: printf signed char 
C :: c Program for Sum of the digits of a given number 
C :: c fractional sleep 
C :: ROUNDING decimal number in C 
C :: fopen function in c 
C :: c for loop 
C :: how to make sure input is integer c 
C :: arduino sketch structure 
C :: ft_putchar 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =