Computer Programming C Laboratory: Algorithms, Flowcharts and Pseudocodes

Write a program to find minimum and maximum number from the list (Algorithms, Flowcharts and Pseudocodes)

Algorithms, Flowcharts and Pseudocodes: Write a program to find minimum and maximum number from the list

Algorithms, Flowcharts and Pseudocodes

Write a program to find minimum and maximum number from the list.


Algorithm

Step 1: Start

Step 2: READ the upper limit of the array 'n'

Step 3: READ an array a[] of 'n' numbers

Step 4: Assign first array value to

           MAX ← a[0] and MIN←a[1]

Step 5: FOR I = 2 to n

Step 6: if a[i] > MAX then MAX = a[i]

Step 7:  if a[i] < MIN then MIN = a[i]

Step 8: Repeat Step 5 to Step 7 until loop reached to 'n'

Step 9: Print MAX, MIN

Step 10: Stop


Flow chart



Pseudocode

Set initial i

READ n

READ an array a[] of 'n' numbers

Set MAX = a[0], MIN=a[1]

FOR i = 2 to n

        IF a[i] > MAX then MAX=a[i]

        IF a[i] < MIN then MIN=a[i]

end‒for

Print MAX, MIN

 

Computer Programming C Laboratory: Algorithms, Flowcharts and Pseudocodes : Tag: : - Write a program to find minimum and maximum number from the list (Algorithms, Flowcharts and Pseudocodes)


Computer Programming C Laboratory: Algorithms, Flowcharts and Pseudocodes



Under Subject


Computer Programming C Laboratory

CS25C01 1st Semester EEE, ECE, CSE, CSE(CY), AIDS, IT practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation



Related Subjects


English Essentials I

EN25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


தமிழர் மரபு - Heritage of Tamils

UC25H01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Applied Calculus

MA25C01 Maths 1 M1 - 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Applied Physics I

PH25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Applied Chemistry I

CY25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Makerspace

ME25C04 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Computer Programming C

CS25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Computer Programming Python

CS25C02 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation


Fundamentals of Electrical and Electronics Engineering

EE25C03 1st Semester EEE Depart | 2025 Regulation | 1st Semester 2025 Regulation


Introduction to Mechanical Engineering

ME25C03 1st Semester Mechanical Dept | 2025 Regulation | 1st Semester 2025 Regulation


Introduction to Civil Engineering

CE25C01 1st Semester Civil, Agri Departments | 2025 Regulation | 1st Semester 2025 Regulation


Essentials of Computing

CS25C03 1st Semester - AIDS, CSE, CSE(CY), IT Department | 2025 Regulation | 1st Semester 2025 Regulation


Applied Physics I Laboratory

PH25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation


Applied Chemistry I Laboratory

CY25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation


Computer Programming C Laboratory

CS25C01 1st Semester EEE, ECE, CSE, CSE(CY), AIDS, IT practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation


Computer Programming Python Laboratory

CS25C02 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation


Engineering Drawing

ME25C01 EEE, Mech, Agri, EEE Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Electronics and Electrical Engineering

EE25C04 1st Semester ECE Dept | 2025 Regulation | 1st Semester 2025 Regulation


Essentials of Computing - Laboratory

CS25C03 1st Semester AIDS, CSE, CSE(CY), IT Depts | practical Laboratory Manual | 2025 Regulation | 1st Semester 2025 Regulation