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
Write a program in c to replace any vowel in a string with z?
How to establish connection with oracle database software from c language?
What are the 4 data types?
What is meant by initialization and how we initialize a variable?
Differentiate between the expression “++a” and “a++”?
Why is %d used in c?
What are pointers? What are stacks and queues?
What is the function of volatile in c language?
Is c call by value?
I have seen function declarations that look like this
What are valid operations on pointers?
Are pointers integer?
how to find anagram without using string functions using only loops in c programming
Can the “if” function be used in comparing strings?
Is null equal to 0 in sql?