Showing posts with label calculating largest number. Show all posts
Showing posts with label calculating largest number. Show all posts

Friday, 25 October 2013

Finding largest two numbers from N numbers

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....