spaneos
Company
Programming
Technical
print the below pattern in c :
# # # # # # #
blank line
# #
blank line
# # # # #
blank line
# #
blank line
Read Solution (Total 2)
-
- #include
int main()
{
int i,j;
for(i=7;i>3;i--)
{
if(i%2!=0)
j=i;
else
j=2;
while(j>0){
printf("#");
j--;
}
printf("nblank linen");
}
} - 10 years agoHelpfull: Yes(3) No(0)
- # include
void main()
{
int i;
for(i=7;i>0;i--)
{
if(i%2!=0)
{
while(i>0)
{
printf("#");
i--;
}
printf("n BLANK LINE ");
}
else
{
printf("##");
printf("n BLANK LINE");
}
}
}
- 10 years agoHelpfull: Yes(2) No(0)
spaneos Other Question