Get Your Programming Problems Solved - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Get Your Programming Problems Solved (967 Views)
1 Reply
| Get Your Programming Problems Solved by Nobody: 10:41am On Jul 19, 2016 |
Lazy Programmer's joint # p1 Java program: /** * @program: DISSARIUM * @description: To check whether a number is a Dissarium no or not. * @author: Emmypong * @email: emmypongaim@gmail.com */ public class DISSARIUM { public void input(int n) { int num=n,sum=0,d,c=0; while(num>0) { c++; num = num/10; } num = n; while(num>0) { d = num%10; sum = sum + (int) Math.pow(d,c); num = num/10; System.out.println(c); --c; } if(sum==n) { System.out.println(n+" is DISSARIUM" ;u } else { System.out.println(n+" is not DISSARIUM" ;} } } get these type of short codes and alse request your choice code at :: https://free.facebook.com/dbasement.tk/ |
Top Dev's Share Your Programming Journey • Larisoft Clean Desktop: (re: Operation Prove Your Programming Skills) • Operation Prove Your Programming Skills • 2 • 3 • 4
Pls Help...html Links • Clean And Clear Code • Make Legit Money Selling Online With SHOPSPORTFOLIO
;