Print out the character string si alter replacing the new character strings.
Below is an example:
Enter: s1 = "Chao mung ban den voi ngon ngu lap trinh C"; s2 = "ng"; s3 = "AB"
Chao mung ban den voi ngon ngu lap trinh C ng AB
OUTPUT:
Chao muAB ban den voi ABon ABu lap trinh C Press any key to continue
Question 10:
(1 mark, file to be edited: Q10.c)
The program allows the user to enter an array of n integers from the keyboard.
Find and print the number of perfect numbers in the input array. If there is no perfect number in the array, print the message: "There is no perfect number among the n elements of the array".Knowing that a perfect number is a number whose sum of its divisors is equal to itself.
Below is an example:
Cas
e 1
5
9 6 20 28 15
OUTPUT:
2
Press any key to continue
5
9 5 30 27 15
Cas
e 2
Zoom
+ 100%
Close