Example Of An Array

Consider an example of finding the greatest among three numbers, number1, number2 and number3. The coding will be as given below

#include(stdio.h)

main()

{

int number1, number2, number3;

int great = 0;

printf{"Enter any three numbers\n");

scanf ("%d%d%d", &number, &number2, &number3);

if (number1 <= number2 && number3 <= number2)

great = number2;

else if (number <= number3)

great = number3;

else

great = number1;

printf("The greatest of three numbers is %<1", great);

}

Live Online Email Based Homework Assignment Help In Examples Of An Array

Transtutors comprises highly qualified and certified teachers, college professors, subject professionals in various subjects like C language etc. All our C language tutors are highly experienced and can clear your doubt regarding example of an array and can explain the different concepts to you effectively.