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
using for loop sum 2 number of any 4 digit number in c language
What do you mean by dynamic memory allocation in c? What functions are used?
How many loops are there in c?
Write a program to print factorial of given number without using recursion?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Is a pointer a kind of array?
How we can insert comments in a c program?
Difference between malloc() and calloc() function?
C program to find all possible outcomes of a dice?
Explain c preprocessor?
Differentiate between a structure and a union.
When is a null pointer used?
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.
Is c compiled or interpreted?
main() { printf("hello"); fork(); }