GVA SUPPORT

³äïîâ³äü íà çàïèòàííÿ ¹ 1325447156
Text:
	ԲΠ= Ãîðáà÷åíêî Â.À.

 Çàïèòàííÿ:// ÏÎÄÊËÞ×ÅÍÍÛÅ ÁÈÁËÈÎÒÅÊÈ
#include <iostream>  // ÁÈÁËÈÎÒÅÊÀ ÂÂÎÄÀ/ÂÛÂÎÄÀ
#include <math.h>    // ÁÈÁËÈÎÒÅÊÀ  ÊÎÒÎÐÎÉ ÍÀÕÎÄßÒÜÑß ÌÀÒÅÌÀÒÈ×ÅÑÊÈÅ ÔÓÍÊÖÈÈ
#include <stdio.h>   // ÁÈËÈÎÒÅÊÀ ÂÂÎÄÀ/ÂÛÂÎÄÀ
using namespace std; // ÒÀÊ ÍÀÄÎ äëÿ cout è äëÿ cin

//------------------------------------------------------------------------------


int main()
{
        // Ïðîñèò â ïîëüçîâàòåëÿ ââåñòè 2 ÷èñëà è âûâåäåò íàèáîëüøåå
        double a,b;
        cout<<"Enter a and b : ";
        cin>>a>>b;

        if (a == b)
        {
                cout<<" OBA RAVNI"<<endl;
        }
        else
                if (a > b)
                {
                        cout<<" MAX  =  "<<a<<endl;
                }
                else
                {
                        cout<<" MAX  =  "<<b<<endl;
                }
        cout<<"======="<<endl;

        cout<<" a > b ";
        if ( a > b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;

        cout<<" a < b ";
        if ( a < b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;

        cout<<" a >= b ";
        if ( a >= b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;

        cout<<" a <= b ";
        if ( a <= b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;

        cout<<" a == b ";
        if ( a == b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;

        cout<<" a != b ";
        if ( a != b) { cout<<" DA ";} else {cout<<" NET ";} cout<<endl;
        system("pause");
        return 0;
}


====================================	
Âàøà â³äïîâ³äü