1. الرئيسية
  2. /
  3. المدوّنة
  4. /
  5. write c++ program to Print the average of a numbers
سي بلس بلس

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

October 1, 2022 1 دقيقة قراءة 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;


}


شارك المقال:
اقرأ أيضاً

مقالات ذات صلة