Kod: Zaznacz cały
#include<iostream>
int a;
float x, b,sum;
using namespace std;
int main()
{
cout<<"Podaj liczbe a=";
cin>>a;
cout<<"Podaj liczb b=";
cin>>b;
sum=a+b;
x=sum/2;
cout<<"Suma podanych liczb "<<fixed<<setprecision(2)<<suma<<endl;
cout<<"Średnia podanych liczb ";
system("pause");
return 0;
}