Posts

Showing posts with the label minimum of numbers

C programming Minimum and Maximum of Numbers

It has two C programming code to find minimum value and maximum value of numbers, they are Minimum of Numbers - The input of the program is N numbers and the output is minimum of given inputs Maximum of Numbers - The input of the program is N numbers and the output is maximum of given inputs Minimum of array of numbers - Algorithm set min=INT_MAX Read N integers For i=1 : N IF integers[i] Maximum of array of numbers - Algorithm set max=0 Read N integers For i=1 : N IF integers[i] > max then max =integers[i] End IF End For print max Minimum of Numbers - C programming code The C program reads N integers from user while the program is running, and prints the result minimum value of given integers # include <stdio.h> # include < string...