Search⌘ K

Example 8: Find the Greatest Number

Explore how to implement decision-making in C by writing a program that finds the greatest number among five inputs. Understand comparing values step-by-step to improve your control flow and problem-solving abilities in C programming.

We'll cover the following...

Problem

Write a program that takes 5 numbers as parameters, and then print the biggest number amongst all.

Example

Input
...