Tag Archives: Find Largest of three double numbers c program

Find Largest of three double numbers if and Logical Operators

Find Largest of three double numbers #include <stdio.h> int main() { int n1, n2, n3, max; printf(“Enter first number=”); scanf(“%d”,&n1); printf(“Enter second number=”); scanf(“%d”,&n2); printf(“Enter third number=”); scanf(“%d”,&n3); max = (n1 > n2) ? (n1 > n3 ? n1 : n3) : (n2 > n3 ? n2 : n3); printf(“Largest number among %d, %d and… Read More »

Loading