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

using for loop sum 2 number of any 4 digit number in c language

2413


What do you mean by dynamic memory allocation in c? What functions are used?

1221


How many loops are there in c?

1161


Write a program to print factorial of given number without using recursion?

1037


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1257


Is a pointer a kind of array?

1243


How we can insert comments in a c program?

1184


Difference between malloc() and calloc() function?

1266


C program to find all possible outcomes of a dice?

2408


Explain c preprocessor?

1155


Differentiate between a structure and a union.

1329


When is a null pointer used?

1165


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1764


Is c compiled or interpreted?

1241


main() { printf("hello"); fork(); }

1246