Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
1
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { long a=9386769069L; int i;int k=0;long d=0;long s=0; for(i=1;i <=10;i++) { d=a%10; s=d*i +s; a=a/10; if(a==0) { k=1; break; } } if(k ==1 && s % 11==0) System.out.println("isdn no."); else System.out.println("not an isdn no."); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
exp 2
classwork
pow binary
mango
練習問題
frequency of char
inheritance
Problem: fb_series
update
Largest prime factor
Please log in to post a comment.