Skip to content

Commit

Permalink
Create barChart.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AVIKBANERJEE authored Oct 13, 2022
1 parent 3db8767 commit 2a0101f
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 2a0101f

Please sign in to comment.