Facebook
From Denim Crow, 5 Years ago, written in Plain Text.
This paste is a reply to Untitled from Sludgy Crow - go back
Embed
Viewing differences between Untitled and Re: Untitled
#include 
#include 

using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(void) {
        
        float a, b, c;
        float wynik;
        
        cin >> a;
        cin >> b;
        cin >> c;
        
        if((a > b) && (a > c)) 
                wynik = a;
        else if((b > a) && (b > c)) 
                wynik = b;
        else if ((c > a) && (c > b)) 
                wynik = c
                        
        if(wynik = a)
                cout << "Max(a,b,c)= " << fix << setprecision(2) << a << endl;
        else if(wynik = b)
                printf("Max(a,b,c)=%.2f",b);
        else if(wynik = c)
                        printf("Max(a,b,c)=%.2f",c);
                        
                
        cin >> ignore();
        
        return 0;
}

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Edgy Matamata text 5 Years ago.