Computer Science, asked by dhanaraju043, 1 month ago

write a program to find the biggest number among 5 numbers​

Answers

Answered by dipikbhandari9055
2

int largestNumber;

int smallestNumber;

int numbers[n];

largestNumber=numbers[0];

smallestNumber=numbers[0];

for (i=0 ; i<n; i++)

{

if (numbers[i] > largestNumber)

{

largest = numbers[i];

}

if (numbers[i] < smallestNumber)

{

smallestNumber= numbers[i];

}

}

Similar questions