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 |
Write a C program to convert an integer into a binary string?
What is a spanning Tree?
what is Array?
What does the error message "DGROUP exceeds 64K" mean?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER
What is realloc in c?
wtite a program that will multiply two integers in recursion function
How to implement call back functions ?
What is the use of c language in real life?
how to set Nth bit of variable by using MACRO
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female