(C program to check biggest of two numbers)
In this article we will show you, How to write a C program to check biggest of two value
(Program/coding)
//Write a C program to check biggest of two value using conditional OP
#include<stdio.h>
#include<conio.h>
{
int a,b,c,d;
clrscr();
printf("enter the three value");
scanf("%d %d %d",&a,&b,&c);
d=(a>b)?(a>c?a:c):(b>c)?b:c;
printf("the biggest of=%d",c);
getch();
}
In this article we will show you, How to write a C program to check biggest of two value
(Program/coding)
//Write a C program to check biggest of two value using conditional OP
#include<stdio.h>
#include<conio.h>
{
int a,b,c,d;
clrscr();
printf("enter the three value");
scanf("%d %d %d",&a,&b,&c);
d=(a>b)?(a>c?a:c):(b>c)?b:c;
printf("the biggest of=%d",c);
getch();
}
Comments
Post a Comment
Please Subscribe and Comments my blog site.