#include <bits-stdc++.h>
void main()
{
int i = 0, LARGEST = 0, SMALLEST = 0, COUNT = 1, n;
do {
printf(" \n\n Enter the number %d :- ", COUNT);
std::cin >> i;
COUNT++;
if (i > LARGEST) {
LARGEST = i;
}
else if (i == 99) {
printf("\n\ncheck out ..... ");
break;
}
n = i;
} while (i != 99);
std::cout << "\n the greatest num is = " << LARGEST;
}
How to make this program give me the smallest number , its already gives me the greatest one , what should I do to make it print the smallest num ??