Write a program that will get two numbers and print the average
1
Expert's answer
2022-03-21T12:36:18-0400
#include<iostream>usingnamespace std;
intmain(int argc, char *argv[]){
float a,b;
cout<<"Please, enter two values:";
cin>>a>>b;
float res=(a+b)/2;
cout<<"The average is "<<res;
}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments