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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / dhruv sharma rkdf

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

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sampath

for(i=0;i<=5;i++){
for(j=i;j<=i;j++)
printf("*");
printf("\n");
}

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What does c mean before a date?

0 Answers  


Write down the program to sort the array.

4 Answers   Impiger,


What are the three constants used in c?

0 Answers  


write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4

1 Answers  


How will you declare an array of three function pointers where each function receives two ints and returns a float?

0 Answers   TISL,


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

0 Answers   Infosys,


how to swap 2 numbers in a single statement?

3 Answers  


errors in computer programmes are called

1 Answers   NET,


Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

0 Answers  


whether itis a structured language?

1 Answers   Microsoft,


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


Why are algorithms important in c program?

0 Answers  


Categories