Find the greatest of the three numbers using conditional operators.

 This post content:-

  • Algorithm
  • Flowchart
  • C code
  • Output
  • Pdf notes

Algorithm:-
Step 1:- start.
Step 2:- declare variables char a.
Step 3:- if a>b and c>b then print c is the greatest number.
Step 4:- if a>b and a>c then print a is the greatest number.
Step 5:- if b>c then print b is the greatest number.
Step 6:- END.


Flowchart:-

c code:-
Output:-
Try it yourself:-


Comments

Popular posts from this blog

Develop and execute C Program to Add Two Distances given in kilometer-meter Using Structures.

Develop a c program to find the sum of all elements stored in a given array using a pointer.