For a given 3 digit number, find whether it is armstrong number or not. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 33 + 73 + 13 = 371
First line contains an integer, the number of test cases 'T'. T testcases follow. Each test case contains a positive integer N.
For each testcase, in a new line, print "Yes" if it is a armstrong number else print "No".
1 <= T <= 31
100 <= N < 1000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.