#include<stdio.h>
printf("Enter three numbers: \n");
printf("Enter 1st number: "); //asking 1st number
printf("\nEnter 2nd number: "); //asking 2nd number
printf("Enter 3rd number: "); //asking 3rd number
//condition for max
if (one>two && one>three)
max=three;
printf("\nGreater number is %d",max);
getchar();
Tags:
basic c program
C
c program
shortcode
Write a C program to get three integers from user and find the largest number among three numbers