Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Laivnas
- #include <iostream>
- using namespace std;
- int main()
- {
- int k, n, m, s;
- cout << "Iveskite kiek laivu: " << endl;
- cin >> k;
- cout << "Iveskite kiek maisu prieskoniu: " << endl;
- cin >> n;
- cout << "Iveskite kiek laivu nuskendo audroje: " << endl;
- cin >> m;
- s = k - m;
- m = s * n;
- cout << "Atsakymas: " << m;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement