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

Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *

Answer Posted / sjyamsunderreddy.beemudi

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf(\n);
}
getch();
}

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does placing some code lines between the comment symbol help in debugging the code?

1003


What's a good way to check for "close enough" floating-point equality?

1167


How are structure passing and returning implemented?

1041


How #define works?

1108


How does pointer work in c?

1127


What is the difference between int main and void main in c?

1182


How do you list files in a directory?

1146


Sir i need notes for structure,functions,pointers in c language can you help me please

2419


What is getch () for?

1241


Is it valid to address one element beyond the end of an array?

1175


What is the significance of scope resolution operator?

1415


Where are the auto variables stored?

1153


What is meant by 'bit masking'?

1391


how logic is used

1974


Why does notstrcat(string, "!");Work?

1149