Computer Science, asked by AadishreePradhan, 11 hours ago

Write a program in QBASIC to input a number and find out whether it is a Krishnamurthy number or not.​

Answers

Answered by MissIncredible34
3

Explanation:

Input : 145

Output : YES

Explanation: 1! + 4! + 5! =

1 + 24 + 120 = 145, which is equal to input,

hence YES.

Input : 235

Output : NO

Explanation: 2! + 3! + 5! =

2 + 6 + 120 = 128, which is not equal to input,

hence NO.

Answered by itzmecutejennei
2

Answer:

input = 145

output = yes

Explanation:

1!+4!+5!

hope it helps you

Similar questions