JakubKaczmarek_123

z9

Dec 4th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. float a,b,c = 0;
  5. int main(){
  6. cout << "podaj dwie liczby: " << endl;
  7. cin >> a >> b;
  8. cout << "podaj wynik mnozenia: " << endl;
  9. cin >> c;
  10. while (c != a*b){
  11. cout << "podales zly wynik, sprobuj jeszcze raz" << endl;
  12. cin >> c;
  13. }
  14. cout << "podany wynik jest poprawny" << endl;
Advertisement
Add Comment
Please, Sign In to add comment