Skip to main content
Search
Search This Blog
learn coding
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
September 13, 2022
Write a C program to find greatest among three integers using conditional operator
Write a C program to find greatest among three integers using conditional operator
/* Greatest among three integers using conditional operator */
#include<stdio.h>
void main()
{
int a, b, c, big;
printf("Enter three integers\n");
scanf("%d%d%d", &a,&b,&c);
big = a > b ? a : b; big = big > c ? big : c;
printf(“Biggest is %d\n",big);
}
Comments
Popular Posts
September 25, 2022
automate the boring stuff with python book pdf
September 23, 2022
intro to python book (for computer science and data science)pdf download
Comments
Post a Comment