Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int G, p;
- std :: cout << "Unesite glavnicu: ";
- std :: cin >> G;
- std :: cout << "Unesite kamatnu stopu: ";
- std :: cin >> p;
- int K = G*p/100;
- int S = G + K;
- std:: cout << "Glavnica: "; std:: cout.width(6);
- std:: cout << G << std:: endl;
- std:: cout << "Kamatna stopa: "; std:: cout.width(6);
- std:: cout << p << std:: endl;
- std:: cout << "Kamate: "; std:: cout.width(6);
- std:: cout << K << std:: endl;
- std:: cout << "Nova svota: "; std:: cout.width(6);
- std:: cout << S << std:: endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement