Odpowiedź:
#include <iostream>
#include <stdio.h>
using namespace std;
int main(int argc, char const *argv[])
{
float a;
cout << "Podaj dlugosc boku a" << endl;
cin >> a;
float b;
cout << "Podaj dlugosc boku b" << endl;
cin >> b;
float result = a * b;
cout << "Pole prostokata wynosi: ";
printf("%.2lf", result);
return 0;
}
Wyjaśnienie:
Jak coś to pytaj :)