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,263
write c++ program to  Print the average of a numbers .
// 1) 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;


}
Share:
Read next

Related articles