Untitled
Anonymous
plain_text
11/17/2024 1:59 PM
776 B
15
Indexable
#include <stdio.h>
int main() {
int a, b, c, lowest;
// Input three integers
printf("Enter three integers: ");
scanf("%d %d %d", &a, &b, &c);
// Determine the lowest number using if-else conditions
if (a <= b) {
if (a <= c) {
lowest = a;
} else {
lowest = c;
}
} else {
if (b <= c) {
lowest = b;
} else {
lowest = c;
}
}
// Output the lowest number
printf("The lowest number is: %d\n", lowest);
return 0;
}
Editor is loading...
Leave a Comment