img
Question:
Published on: 25 December, 2024

Write a C program to find minimum among three numbers.

Answer:

 

#include<stdio.h>
#include<conio.h>
main()
{
	int a,b,c,min;
	printf("\n enter three numbers");
	scanf("%d %d %d",&a,&b,&c);
	min=a;
	if(b<min)
	 min=b;
	if(c<min)
	 min=c;
	printf("\n the minimum no. is %d",min);
	getch();	  
}

Output:

Random questions