Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int nxm, kxj;
- int n;
- int m;
- int k;
- int j;
- int i;
- int main()
- {
- cout << "Podaj wymiar kolumny n:";
- cin >> n;
- cout << "Podaj wymiar wiersza m:";
- cin >> m;
- cout << "Podaj wymiar kolumny k:";
- cin >> k;
- cout << "Podaj wymiar wiersza j:";
- cin >> j;
- if (j!=n)
- {
- do
- {
- cout << "Błąd. Wartość j musi być równa n" << endl << "Podaj nową wartość j:";
- cin >> j;
- }
- while (j != n);
- cout << "Poprawna wartość";
- }
- else
- {
- cout << "Przyjęto wartości";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement