Sunday 12 December 2010

Flow chart for To find both the largest and smallest number in a list of integers


Description:


This program contains n number of elements, in these elements we can find the largest and smallest numbers and display these two numbers



Output:

1. enter the array size:4
Enter the elements of array 36 13 2 45
maximum value is:45
    minimum value is:2
2.enter the array size:5
Enter the elements of array 6 2  1   3 8
maximum value is:8
minimum value is:1
3.enter the array size:5
Enter the elements of array-6 9 -9 2 5
   maximum value is:9
minimum value is:-9

conclusion: the program is error free

VIVA QUESTIONS:

1) What is an array ?
Ans: The collection of similar elements is called array

2) How many types of arrays are there ?
 Ans: Three types. They are one dimensional ,two dimensional and multi dimensional arrays

You may like the following courses:


Do you want Training for this course : Click here for enrolling

No comments:

Post a Comment