New course! Every coder should learn Generative AI!
Try a free lesson0
Another way for Armstrong no.
can't we make another code for Armstrong no. without using scanner?
1 Answer
+ 2
give variable in declaration, then no need of scanning the values. but that program can not vary according to your need.