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 meant by type specifiers?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
difference between loading and linking
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Write a program to print factorial of given number without using recursion?
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4
Differentiate between full, complete & perfect binary trees.
Explain threaded binary trees?
How can I find the day of the week given the date?
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
Explain the concept and use of type void.
how to print a statement in c without use of console statement ,with the help of if statement it should print