Răspuns :
Program suma;
var a, b, c, d, s: real;
begin
write('Dati numerele a, b, c, d:');
readln(a, b, c, d);
s:=a+b+c+d;
write('Suma numerelor este:', s);
readln;
end.
var a, b, c, d, s: real;
begin
write('Dati numerele a, b, c, d:');
readln(a, b, c, d);
s:=a+b+c+d;
write('Suma numerelor este:', s);
readln;
end.
Solutie in C++. Succes!
#include <iostream>
using namespace std;
double a, b, c, d, s;
int main()
{
cin >> a >> b >> c >> d;
s = a + b + c + d;
cout << s;
return 0;
}
#include <iostream>
using namespace std;
double a, b, c, d, s;
int main()
{
cin >> a >> b >> c >> d;
s = a + b + c + d;
cout << s;
return 0;
}