Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cout << "Ievadi tris ciparus: ";
  7. cin >> a >> b >> c;
  8. if (a < b && a < c) { /* ja A ir mazaks par B un C, tad... */
  9. cout << "Mazakais cipars ir: " << a;
  10. } else if (b < a && b < c) { /* un ja B ir mazaks par A un C */
  11. cout << "Mazakais cipars ir: " << b;
  12. } else {
  13. cout << "Mazakais cipars ir: "<< c;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement