December 2018 1 25 Report
Czy mógłby mi ktoś dlaczego moje rozwiązanie dostaje tylko 70%?
Zadanie jest w języku c++.

#include

using namespace std;

int main ()
{
int a,i,b,c,d,p;
cin >> a >> b >> c >> d ;
if ((a>=b) && (a>=c) && (a>=d))
{
cout << a*a;
}
else {
if ((b>=a) && (b>=c) && (b>=d))
{
cout << b*b;
}
else {
if ((c>=a) && (c>=b) && (c>=d))
{
cout << c*c;
}
else {
if ((d>=a) && (d>=b) && (d>=c))
{
cout << d*d;
}
}
}
}


}

More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.