6.4.. Napisati program koji za ispis rezultata izraza: x = (a-b)/4 - (b+a)/3.

Listing programa:

// 06431103
#include<iostream>

using namespace std;

int main()
{
    double a;
    double b;
    cout<<"Unesi a"<<endl;;
    cin>>a;

    cout<<"Unesi b"<<endl;
    cin>>b;

    double x=(a-b)/4 - (b+a)/3 ;

    cout<<" x = "<<x<<endl;

    return 0;
}

Ispis na ekranu:

Index