Computer Science, asked by navdeepkaur229449, 8 months ago


6. Write a program to find minimum of two numbers using Subroutine. class 7

Answers

Answered by cpkumar27
6

Answer:

Write a C program to input two or more numbers from user and find maximum and minimum of the given numbers using functions. How to find maximum and minimum of two or more numbers using functions in C programming.

Example

Input

Input two numbers: 10

20

Output

Maximum = 20

Minimum = 10

Answered by mehdi16
3

Answer:

First give a meaningful name to our function. Say max() function is used to find maximum between two numbers. Second, we need to find maximum between two numbers. Hence, the function must accept two parameters of int type say, max(int num1, int num2) .

Explanation:

hope it's help you

and plzz follow me

Similar questions