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 |
difference between string and array?
What is echo in c programming?
Write a program for print infinite numbers
code for find determinent of amatrix
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Why do we need arrays in c?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y
What are the primitive data types in c?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is 2c dna?
What will happen when freeing memory twice
write a program which will count occurance of a day between two dates.