Finding largest two numbers from N numbers:
This C program example finds the two largest numbers from the list of 'N' numbers.
Mechanism:
In this program, we have declared the variable of:
Size
Input
First largest
Second largest
First, we take input of size and then we enter a for loop which executes for 'size' times. This program is designed in such a way that it checks all negative and positive integers. This program uses an if else and else if structure and for loop structure structure to execute the logic of the program....
Showing posts with label finding largest numbers. Show all posts
Showing posts with label finding largest numbers. Show all posts
Friday, 25 October 2013
Subscribe to:
Posts (Atom)