Answer Posted / kapil
#include<stdio.h>
void main()
{
int i=0,j=1;
while(i<3)
{
while(j<=7)
{
if(j-i==4||j+i==4)
printf("*");
else
printf(" ");
j++;
}
printf("\n");
i++;
j=1;
}
while(j<=7)
{
printf("*");
j++;
}
}
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Why is c still so popular?
What is conio h in c?
What is a substring in c?
Explain what is the difference between a string and an array?
How does struct work in c?
Write a program to reverse a given number in c?
How does free() know explain how much memory to release?
What is page thrashing?
What is the difference between declaring a variable and defining a variable?
what do you mean by enumeration constant?
What does do in c?
Are the variables argc and argv are always local to main?
What is the difference between int main and void main?
What is hashing in c language?
How can this be legal c?