Pages

Monday, 29 January 2018

Cheking of Greatest number Using a function in C Language

Cheking of Greatest number Using a function
/* This program takes three integers from user, calls a function to compares which one is greatest
and shows results inside that function.*/
#include<stdio.h>
#include<conio.h>
/*declaring function*/
void check(int, int, int);
int main ()
{
    /*declaring veriables*/
    int num11, num22, num33;
 
    /*prompt to take the input*/
    printf("Please enter three integers, remember pressing enter after every one: \n");
  
    /*taking input*/
    scanf("%d%d%d",&num11,&num22,&num33);
    check(num11, num22,num33);
    getche();
    return 0;

}