Untitled
unknown
plain_text
5 months ago
581 B
4
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