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 is the collection of communication lines and routers called?
Explain the advantages of using macro in c language?
How many bytes is a struct in c?
Are pointers really faster than arrays?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program
What is difference between constant pointer and constant variable?
What is gets() function?
How do you convert strings to numbers in C?
print the table 5 in loops
What is union and structure?
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
What are qualifiers and modifiers c?