CLS INPUT 'Enter any number'; N A = N S = 0 WHILE N <> 0 R = N MOD 10 S = S+R^3 N = N\10 WEND IF A=S THEN PRINT "The number is armstrong" ELSE PRINT "The number is not armstrong" END IF END
Get link
Facebook
X
Pinterest
Email
Other Apps
Comments
Popular posts from this blog
Area of rectangle CLS INPUT "Enter the length"; L INPUT "Enter the breadth"; B A = L*B PRINT "Area of rectangle="; A END
Comments
Post a Comment