Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a, b, c;
- cout << "Ievadi tris ciparus: ";
- cin >> a >> b >> c;
- if (a < b && a < c) { /* ja A ir mazaks par B un C, tad... */
- cout << "Mazakais cipars ir: " << a;
- } else if (b < a && b < c) { /* un ja B ir mazaks par A un C */
- cout << "Mazakais cipars ir: " << b;
- } else {
- cout << "Mazakais cipars ir: "<< c;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement