Advertisement
naskedvi

S1 - zad.7.

Mar 2nd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int G, p;
  6. std :: cout << "Unesite glavnicu: ";
  7. std :: cin >> G;
  8. std :: cout << "Unesite kamatnu stopu: ";
  9. std :: cin >> p;
  10. int K = G*p/100;
  11. int S = G + K;
  12.  
  13. std:: cout << "Glavnica: "; std:: cout.width(6);
  14. std:: cout << G << std:: endl;
  15. std:: cout << "Kamatna stopa: "; std:: cout.width(6);
  16. std:: cout << p << std:: endl;
  17. std:: cout << "Kamate: "; std:: cout.width(6);
  18. std:: cout << K << std:: endl;
  19. std:: cout << "Nova svota: "; std:: cout.width(6);
  20. std:: cout << S << std:: endl;
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement