Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program in c to print
*
* *
* *
*******

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


Please Help Members By Posting Answers For Below Questions

Why malloc is faster than calloc?

1076


What was noalias and what ever happened to it?

1048


about c language

2029


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

1007


What do you mean by recursion in c?

1119


Tell us something about keyword 'auto'.

1077


Explain about C function prototype?

1106


p*=(++q)++*--p when p=q=1 while(q<=6)

1768


What are void pointers in c?

1004


What are runtime error?

1144


Explain what is a program flowchart and explain how does it help in writing a program?

1103


Explain how can you check to see whether a symbol is defined?

1214


is it possible to create your own header files?

1107


hi, which software companys will take,if d candidate's % is jst 55%?

2095


What are the different types of endless loops?

1082