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,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;


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

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