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 |
How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.
Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
What is the meaning of ?
Explain what is a pragma?
what is the little endian and big endian?
a 'c' program to tell that the set of three coordinates lie on a same line
What is the mean of function?
What are data breakpoints?
Which header file is essential for using strcmp function?
What is the size of structure in c?
How to add two numbers without using semicolon at runtime