Skip to content

Commit

Permalink
Merge pull request #194 from AVIKBANERJEE/main
Browse files Browse the repository at this point in the history
barChart.java
  • Loading branch information
Priyadarshan2000 authored Oct 13, 2022
2 parents 4d29291 + 2a0101f commit 14a63d8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions OOPS/barChart.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class Bar{
static void chart()
{
int run[]={16,4,6,10,1,2,18,11,14,27,36,21,19,7,12};
int r[][]=new int[run.length][];
for(int i=0;i<run.length;i++)
{
r[i]=new int[run[i]];
}
for(int i=0;i<r.length;i++)
{
for(int j=0;j<r[i].length;j++)
{
System.out.print(r[i][j]);
}
System.out.println("");
}
}
public static void main(String args[]){
chart();
}
}

0 comments on commit 14a63d8

Please sign in to comment.