1. Home
  2. /
  3. Blog
  4. /
  5. write c++ program to Print the average of a numbers
C++

write c++ program to Print the average of a numbers

October 1, 2022 1 min read 2,264
write c++ program to  Print the average of a numbers
#include <iostream>
#include<string>
using namespace std;
int main()
{ 

int a,b,c;
cin>>a>>b>>c;
double avg = (a+b+c)/3;

cout<<"avg = "<<avg<<endl;


}


Share:
Read next

Related articles