You are on page 1of 1

//ZADATAK X

#include <cstdlib>

#include <iostream>

#include <cmath>

using namespace std;

int main(int argc, char *argv[])

float x;

float a;

float b;

float c;

cout<<"unesi prvi broj"<<endl;

cin>>a;

cout<<"unesi drugi broj"<<endl;

cin>>b;

cout<<"unesi treci broj"<<endl;

cin>> c;

x=2*a*(b+3*c);

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

system("PAUSE");

return EXIT_SUCCESS;

You might also like