#include <iostream>
using namespace std;
int main() {
int a, b, c;
cout << "Enter three numbers
";
/* Taking input */
cin >> a >> b >> c;
/* If a is smaller than b and c. */
if (a < b && a < c) {
cout << "Smallest number is " << a;
/* If b is smaller than a and c */
} else if (b < a && b < c) {
cout << "Smallest number is " << b;
} else {
cout << "Smallest number is "<< c;
}
return 0;
}
Code Example |
---|
Cpp :: hello world program in c ++ using standard namespace |
Cpp :: cpp set time |
Cpp :: read from standard input cpp |
Cpp :: what does for do in c++ |
Cpp :: un aliment traduction espagnol |
Cpp :: make an x using asterisk c++ |
C :: auto click connect colab |
C :: how to slow voice speed in pyttsx3 |
C :: what is meaning of product *= in c |
C :: full installation of clang in ubuntu |
C :: check dns server in linux |
C :: find maximum number between 3 numbers in c |
C :: c gettimeofday example |
C :: grep find and replace |
C :: lerp function c |
C :: print 2d array in c |
C :: how to find sum of two nums |
C :: c concatenate strings |
C :: what is strikethrough in markdown |
C :: string input in c |
C :: multiplicationin c |
C :: for loop in c |
C :: accessing elements of 1d array using pointers |
C :: what is syntax in programming |
C :: int to char in c |
C :: equal string c |
C :: how to compareTo in java |
C :: how to read 2d array from a file in c |
C :: casting in c |
C :: how to sort an int array in c |