Header Ads

Header ADS

URI 1013 The Greatest Solution in C++

URI 1013 Solution đŸ‘€ The Greatest đŸ‘€in C++

URI Online Judge Solution 1013 The Greatest in C++
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
https://programminglife77.blogspot.com/

URI Online Judge Solution 1013 The Greatest in C++


#include<bits/stdc++.h>

using namespace std;



int main(){

    int a,b,c,MaiorAB,s,MAX;
    cin>>a>>b>>c;
    MaiorAB=(a+b+abs(a-b))/2;
    MAX=(MaiorAB+c+abs(MaiorAB-c))/2;

    cout<< MAX<<" eh o maior"<<endl;

return 0;}




1 comment:

URI 1070 Six Odd Numbers Solution in C++

URI 1070 Six Odd Numbers Solution in C++ Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just fin...

Powered by Blogger.