14. Write a program to accept a string. Modify the string by adding 'hot' at the beginning
of the word. If the string already contains 'hot', then the string remains unchanged.
Input: Delhi Public School
Output: DeLhl public school
Print the modified string and the message accordingly.
Sample Input: CAKE
Sample Output: HOTCAKE
Sample Input: HOTLINE
Sample Output: No change in the string
and frame a word by joining all the fir
Answers
Answered by
0
Answer:
Write a program to input a number and check whether it is Magic Number' or not
Display the message accordingly.
A number is said to be a magic number if the eventual sum of digits of the number
is one.
Sample Input : 55
Then, 5 + 5 = 10,1 + 0 = 1
Sample Output: Hence, 55 is a Magic Number.
Similarly, 289 is a Magic Number.
when divided b
Similar questions