Write a program that accepts 10 elements from the user and find the smallest and largest elements.

Sample Output:
Enter elements:
Enter arr[0] : 1
Enter arr[1] : 90
Enter arr[2] : 10
Enter arr[3] 18
Enter arr[4] : 12
Enter arr[5]: 11
Enter arr[6] : 77
Enter arr[7] : 55
Enter arr[8] : 22
Enter arr[9] : 13

Smallest element of array is 1
Largest element of array is 90​

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.