Answer Posted / 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 |
Post New Answer View All Answers
What is the modulus operator?
What is a program flowchart?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What header files do I need in order to define the standard library functions I use?
How many levels of pointers can you have?
When a c file is executed there are many files that are automatically opened what are they files?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is printf () in c?
How are 16- and 32-bit numbers stored?
Difference between MAC vs. IP Addressing
What are valid signatures for the Main function?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
How can I discover how many arguments a function was actually called with?
Tell me what is the purpose of 'register' keyword in c language?
Why main is not a keyword in c?