C program to find the greatest number among three numbers

Program

#include<stdio.h>
#include<conio.h>

void main()
{
int x,y,z,max;
clrscr();
printf(“Enter The Three Numbers:”);
scanf(“%d%d%d”,&x,&y,&z);

max=x;
if(y>max&&y>z)
max=y;
else
if(z>max)
max=z;
printf(“nThe Greatest Number among %d %d %d is %d”,x,y,z,max);
getch();
}

Output

DURGESH

I Love python, so I like machine learning a Lot and on the other hand, I like building apps and fun games I post blogs on my website for Tech enthusiast to learn and Share Information With The World.

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 3 =

Recent Content