#include <iostream>
using namespace std;
int main()
{
double a = 0, b = 0;
cout << "Podaj pierwsza liczbe "; cin >> a;
cout << "Podaj pierwsza liczbe "; cin >> b;
cout << "Suma " << a << " i " << b << " wynosi: " << a + b<<endl;
cout << "Iloczyn " << a << " i " << b << " wynosi: " << a * b<<endl;
cout << "Roznica " << a << " i " << b << " wynosi: " << a - b<<endl;
cout << "Iloraz " << a << " i " << b << " wynosi: " << a / b<<endl;
return 0;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main()
{
double a = 0, b = 0;
cout << "Podaj pierwsza liczbe "; cin >> a;
cout << "Podaj pierwsza liczbe "; cin >> b;
cout << "Suma " << a << " i " << b << " wynosi: " << a + b<<endl;
cout << "Iloczyn " << a << " i " << b << " wynosi: " << a * b<<endl;
cout << "Roznica " << a << " i " << b << " wynosi: " << a - b<<endl;
cout << "Iloraz " << a << " i " << b << " wynosi: " << a / b<<endl;
return 0;
}