Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include<iostream>
  2. #include<iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. float a;
  7. float b;
  8. float c;
  9. cout << "Unesi prvi broj" <<endl;
  10. cin >> a;
  11. cout << "Unesi drugi broj"<<endl;
  12. cin >> b;
  13. c = (int)a % (int)b;
  14. cout << "Rezultat" << setprecision(11) << (double)c <<endl;
  15. system("pause");
  16. return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement