You are here:   HomeC Programming (Pratical)C Program Print The Number
by Dinesh Thakur Category: C Programming (Pratical)

This is c program that ask user to find out the Maximum number from given digits. User declares the required variables that use to contain the value in it. User ask to enter any five values then for loop will come in exist for evaluate the condition then if condition will use to evaluate that which number is minimum and which is maximum. Then display the result on screen as output.

Problem Statement
This is C program that ask user to find the maximum and minimum number.

  1. Declare the variable.
  2. Using methods.
  3. Display result on the screen.

Here is C source code to find maximum and minimum number. The output of this program shown below. 

void main()
      int a[5],i,max=0,min=0;
      printf("Enter Five Value :");
                    printf("Minium is : %d\n",min);
                    printf("Maximum is : %d\n",max);

Find the Max Number

Search Content

Advance Courses

Basic Courses

Advertise with Us