For programmers, testers and tech geeks

Sum and Average of three number in C++

#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
    int x,y,z;
    cout<<"Get three numbers from user =\n";
    cin>>x>>y>>z;
    float sum,average;
    sum=x+y+z;
    average=sum/3;
    cout<<"Sum of Three Numbers ="<<sum<<endl;
    cout<<"Average of Three Nmubers ="<<average<<endl;
    getch();

}