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
*
* *
* *
*******



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

Post New Answer

More C Interview Questions

What does c value mean?

0 Answers  


What are the modifiers available in c programming language?

0 Answers  


how to print 212 as Twohundreds twelve plz provide me ans soon

1 Answers  


What are the different types of objects used in c?

0 Answers  


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  


What are the 32 keywords in c?

0 Answers  


How can a number be converted to a string?

1 Answers  


What are the types of macro formats?

0 Answers  


write a program in c language for the multiplication of two matrices using pointers?

8 Answers   Ignou,


What is the difference between formatted&unformatted i/o functions?

0 Answers  


What is the use of putchar function?

0 Answers  


What are data breakpoints?

3 Answers   Adobe,


Categories