0 votes
110 views
in C programming by (98.9k points)
edited
WAP to find greatest of three number using conditional operator

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
#include<stdio.h>
void main()
{
int i,j,k;
printf("Enter three no.\n");
scanf("%d%d%d",&i,&j,&k);
int re=(i>j)?((i>k)?i:k):((j>k)?j:k);
printf("greatest number=%d",re);
}

 

Related questions

0 votes
1 answer 129 views
0 votes
1 answer 314 views
0 votes
0 answers 72 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

563 users

...