0 votes
101 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 120 views
0 votes
1 answer 308 views
0 votes
0 answers 67 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

554 users

...