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 |
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
Is c is a high level language?
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
How can you read a directory in a C program?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Are there constructors in c?
What is void main ()?
What are the loops in c?
How to establish connection with oracle database software from c language?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Explain how are portions of a program disabled in demo versions?
What is array of pointers to string?