Saturday, 19 February 2011

Strong number program in java


Java program to check given number is strong or not



import java.io.*;




class Test {

     public static void main(String[] args) throws IOException {

          int num,i,f,r,sum=0,temp;

          System.out.println("Enter a number");

          BufferedReader br=new BufferedReader(new InputStreamReader (System.in));

          num=Integer.parseInt(br.readLine());

          temp=num;



No comments:

Post a Comment