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

Give the Output :
*
* *
* * *
* * * *

Answer Posted / sakthipriya

#include<stdio.h>
#include<conio.h>
void main()
{
int n=4, c, k, space, count = 1;
space = n;
for ( c = 1 ; c <= n ; c++)
{
for( k = 1 ; k < space ; k++)
printf(" ");
for ( k = 1 ; k <= c ; k++)
{
printf("*");
if ( c > 1 && count < c)
{
printf(" ");
count++;
}
}
printf("\n");
space--;
count = 1;
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between 123 and 0123 in c?

1155


How many levels of pointers can you have?

1134


Explain 'far' and 'near' pointers in c.

1080


What is file in c language?

962


Explain what are its uses in c programming?

1014


How can I implement sets or arrays of bits?

987


Can you please explain the difference between exit() and _exit() function?

992


Is c is a low level language?

1067


What is include directive in c?

1087


What is the purpose of type declarations?

1075


How do you define CONSTANT in C?

1209


Is it better to use a macro or a function?

1098


What is const and volatile in c?

988


How can I change their mode to binary?

1050


Explain indirection?

1061