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
How many header files are in c?
Why is c called c not d or e?
Describe newline escape sequence with a sample program?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
How can I change their mode to binary?
Is null a keyword in c?
Ow can I insert or delete a line (or record) in the middle of a file?
What are the characteristics of arrays in c?
Explain the difference between #include "..." And #include <...> In c?
Why do we need arrays in c?
Explain how many levels deep can include files be nested?
What are the functions to open and close file in c language?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is the best style for code layout in c?
What are the modifiers available in c programming language?