I/O Operations You and Me
QUESTION DESCRIPTION
In Argentina the COUPLE GAMESHOW named You and Me is going to happen.
In order to complete the application process for the game show the participants need to find their average age.
Can you help them them to find their average age?
NOTE:
The Programming Language need to be used is : C++
Refer sample input and output in the test cases.
TEST CASE 1
INPUT
In Argentina the COUPLE GAMESHOW named You and Me is going to happen.
In order to complete the application process for the game show the participants need to find their average age.
Can you help them them to find their average age?
NOTE:
The Programming Language need to be used is : C++
Refer sample input and output in the test cases.
TEST CASE 1
INPUT
28
24
OUTPUTI am 28
You are 24
We are around 26
#include <iostream>
using namespace std;
int main() {
int a,b,avg;
cin>>a>>b;
avg=(a+b)/2;
cout<<"I am "<<a<<endl<<"You are "<<b<<endl<<"We are around "<<avg;
return 0;
}
Comments
Post a Comment