Ask a Question

How is it possible to display the histogram using single for-loop structure, i.e. without using nested loops (two for loop). Can anyone provide the code in C language. C Co Com Comp Compu Comput Compute Computer


Dipankar

on 2012-07-03 09:30:00  

while (i

Dipankar

on 2012-07-03 09:30:00  

for i=1 to strlen(myString) Step 1 printf(''''%.*s\n'''',i++,''''Computer'''');

Dipankar

on 2012-07-03 09:30:00  

printf("%.*s\n",i++,"Computer");