Răspuns:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n,m,S;
cout<<"n=";
cin>>n;
cout<<"m=";
cin>>m;
S=n+m;
if(S%2==0)
cout<<n/m<<" "<<n%m;
else cout<<sqrt(S);
return 0;
}
Explicație:
Multumesc+5 stele+cel mai inteligent raspuns?