Write a program in c to print
*
* *
* *
*******
Answer / 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 |
What does c value mean?
What are the modifiers available in c programming language?
how to print 212 as Twohundreds twelve plz provide me ans soon
What are the different types of objects used in c?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
What are the 32 keywords in c?
How can a number be converted to a string?
What are the types of macro formats?
write a program in c language for the multiplication of two matrices using pointers?
What is the difference between formatted&unformatted i/o functions?
What is the use of putchar function?
What are data breakpoints?