+ 1
C program to print following output by using nested while loop
********** **** **** *** *** ** ** * *
12 Respuestas
+ 3
Please write language name in tags instead of "please solve this".
Try to understand what i did in the following code and be more specific from next time with your attempt added in description.
for(i=0;i<5;i++)
{
for(j=0;j<5-i;j++)
printf("%c", '*') ;
for(k=0;k<i*2;k++)
printf("%c", ' ') ;
for(l=0;l<5-i;l++)
printf("%c", '*') ;
printf("\n") ;
}
+ 3
Suhel Nadaf Where is your attempts?
+ 3
Suhel Nadaf Ok then show your code.
+ 3
Suhel Nadaf
Just go on Sololearn website. Login with your account and Go in Code section. Create new code and save your code.
+ 1
I tried but not solve this
+ 1
I tried on turbocdroid on Android mobile how I insert the code screenshot
+ 1
Ok
+ 1
This code print this pattern
+ 1
Thanks
+ 1
Try
printf("*********") +"\n";
printf("**** ****") +"\n"; and so on... ⌨
- 2
By using nested while loop please