View difference between Paste ID: rBetN6Lt and d3gqNwds
SHOW: | | - or go back to the newest paste.
1
#include <iostream>
2
using namespace std;
3
int main()
4
{
5
    double a,b;
6-
    cout << "Podaj liczbe: ";
6+
    cout << "Podaj liczbe: "; cin >> a;
7-
    cin >> a;
7+
    cout << "Podaj druga liczbe: "; cin >> b;
8-
    cout << "Podaj druga liczbe: ";
8+
    cout << endl << "Wynik: " << a + b << ".";
9-
    cin >> b; a +=b;
9+
10-
    cout << endl << "Wynik: " << a << ".";
10+
11
}