Source code of traiangle programming in java

Saturday, March 21, 2009

import java.io.*; class Increase { public static void main(String args[])throws IOException { BufferedReader BR=new BufferedReader(new InputStreamReader(System.in)); String a,b; int c,d; a=BR.readLine(); c=Integer.parseInt(a); int i,j; for(i=1;i<=c;i++) { for(j=1;j<=i;j++) { System.out.printf(" %d",i); } System.out.printf("\n\n"); } } }

0 comments:

Visitors

PlugIn.ws - Free Hit Counter, Web Site Statistics, Traffic Analysis

  © Blogger template Leaving by Ourblogtemplates.com 2008

Back to TOP