Skip to content

Commit

Permalink
Merge pull request #3 from sandipan08/master
Browse files Browse the repository at this point in the history
Check amstrong
  • Loading branch information
Samrat003 authored Sep 30, 2020
2 parents 4d2d7fc + 3ff8f10 commit 8b86164
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Armstrong01.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import java.util.*;
public class Armstrong01 {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan=new Scanner(System.in);
System.out.println("Enter the number ");
int a=scan.nextInt();
String s=Integer.toString(a);
System.out.println(s.length());


}

}

0 comments on commit 8b86164

Please sign in to comment.