1.
#include <iostream>
using namespace std;
int main()
{
float a,b,c,ma;
cin>>a>>b>>c;
ma = (a+b+c)/3;
cout<<ma;
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
float a,b;
cin>>a>>b;
cout<<a+b<<endl<<a-b<<endl<<a*b<<endl<<a/b;
return 0;
}
3.
#include <iostream>
using namespace std;
int main()
{
float m;
cin>>m;
cout<<m/10<<" dam "<<m/100<<" hm "<<m/1000<<" km "<<endl;
cout<<m*10<<" dm "<<m*100<<" cm "<<m*1000<<" mm "<<endl;
return 0;
}
Sper că te-am ajutat, coroană? :)