Monday, September 30, 2019

Armstrong no


DECLARE SUB A(N)
CLS
INPUT"ENTER ANY NO";N
CALL A(N)
END

SUB A(N)
S=0
A=N
WHILE N<>0
R=N MOD 10
S=S+R^3
N=N\10
WEND
IF A=S THEN
PRINT"THE GIVEN NNO IS ARMSTRONG";
ELSE
PRINT"THE GIVEN NO IS NOT ARMSTRONG"
END IF
END SUB

No comments:

Post a Comment

Experience of covid-19 and cancelling SEE exam

A dangers virus called corona also know as COVID-19 took place around the world. This virus was first found in Wuhan china.this virus start...