Răspuns :
1.
#include <iostream>
using namespace std
int main ()
{
int a,b,c,m;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if(a>b)
{
if(a>c)
cout<<"maximul e "<<a;
else
cout<<"max "<<c;
}
else
if(b>c)
cout<<"max"<<b;
else
cout<<"max "<<c;
return 0;
system ("pause");
}
2.
#include <iostream>
#include <math.h>
using namespace std
int main ()
{
int a,b,c,m,g;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if (a>0 && b>0 && c>0)
{
m=a*b*c;
g=pow(m,1/3) // sau g=cbrt(m) <----depinde de IDE
cout<<"media "<<p;
}
else
cout<<"eroare";
return 0;
sytem("pause");
}
3.
#include <iostream>
using namespace std
int main ()
{
int a,b,c,m,s;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if (a>0 && b>0 && c>0)
{
s=a+b+c;
m=s/3;
cout<<"media "<<s;
}
else
cout<<"eroare";
return 0;
system("pause");
}
#include <iostream>
using namespace std
int main ()
{
int a,b,c,m;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if(a>b)
{
if(a>c)
cout<<"maximul e "<<a;
else
cout<<"max "<<c;
}
else
if(b>c)
cout<<"max"<<b;
else
cout<<"max "<<c;
return 0;
system ("pause");
}
2.
#include <iostream>
#include <math.h>
using namespace std
int main ()
{
int a,b,c,m,g;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if (a>0 && b>0 && c>0)
{
m=a*b*c;
g=pow(m,1/3) // sau g=cbrt(m) <----depinde de IDE
cout<<"media "<<p;
}
else
cout<<"eroare";
return 0;
sytem("pause");
}
3.
#include <iostream>
using namespace std
int main ()
{
int a,b,c,m,s;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"c=";
cin>>c;
if (a>0 && b>0 && c>0)
{
s=a+b+c;
m=s/3;
cout<<"media "<<s;
}
else
cout<<"eroare";
return 0;
system("pause");
}