77.9k views
2 votes
Hello guys" if anyone familiar with paython please answer this question for me thank you.

Write a program whose inputs are three integers, and whose output is the smallest of the three values.
Ex: If the input is:
7
15
3
the output is:
3

2 Answers

4 votes

The Answer is in Bold: C++ Language

#include <iostream>

using namespace std;

int main() {

int a, b, c;

cin >> a;

cin >> b;

cin >> c;

if (a < b && a < c) {

cout << a <<endl;

}

else if(b < a && b < c) {

cout << b << endl;

}

else {

cout << c <<endl;

}

return 0;

}

User Spatial
by
5.3k points
2 votes

Answer:

The answer is in the attaced image.

Hello guys" if anyone familiar with paython please answer this question for me-example-1
User Twilite
by
5.1k points