* * * Happy Programming * * *
Show result Pie chart....... like this..
void main(void){
int a[10]={4,5,7,3,2,1},row=10,col =6,j,i;
for(i=0;i<row;i++){
for(j=0;j<col;j++){
if(a[j]<row-i)
printf(" ");
else
printf(" * ");
}
printf("\n");
}
}
Show result Pie chart....... like this..
void main(void){
int a[10]={4,5,7,3,2,1},row=10,col
for(i=0;i<row;i++){
for(j=0;j<col;j++){
if(a[j]<row-i)
printf(" ");
else
printf(" * ");
}
printf("\n");
}
}
No comments:
Post a Comment