.Write a program in C to get the largest element of an array using the function. Test Data : Input the number of elements to be stored in the array :5 Input 5 elements in the array : element - 0 : 1 element - 1 : 2 element - 2 : 3 element - 3 : 4 element - 4 : 5 Expected Output : The largest element in the array is : 5 2.Write a program in C to check armstrong and perfect numbers using the function. Test Data :
1.Write a program in C to get the largest element of an array using the function.
Test Data :
Input the number of elements to be stored in the array :5
Input 5 elements in the array :
element - 0 : 1
element - 1 : 2
element - 2 : 3
element - 3 : 4
element - 4 : 5
Expected Output :
The largest element in the array is : 5
2.Write a program in C to check armstrong and perfect numbers using the function.
Test Data :
Input any number: 371
Expected Output :
The 371 is an Armstrong number.
The 371 is not a Perfect number.
3.Write a program in C to print all perfect numbers in given range using the function.
Test Data :
Input lowest search limit of perfect numbers : 1
Input lowest search limit of perfect numbers : 100
Expected Output :
The perfect numbers between 1 to 100 are :
6 28
4.Write a program in C to check whether two given strings are an anagram.
Test Data :
Input the first String : spare
Input the second String : pears
Expected Output :
spare and pears are Anagram.
5.Write a C
Test Data :
Input 5 values
25
11
35
65
20
Expected Output :
Number of values you want to input: Input 5 values
Minimum value is: 11
Maximum value is: 65
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images