javaprograms

Ads
 

javaprograms

1 1 12 3 123 6 1234 10 12345 15

write java program for above series?

View Answers

August 30, 2011 at 11:11 AM

public class PatternExample{
public static void main(String[] args){
    int i,j,k,m,x;
    x=0;
    for(i=1;i<=5;i++){
     for(j=1;j<=i;j++){
      System.out.print(j);
     }
     x=x+i;
     System.out.println(" \t"+x);
    }
  }
}

Ads









Related Tutorials/Questions & Answers:
javaprograms
javaprograms
Advertisements
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms
javaprograms

Ads