Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
to find out the reverse digit of a given number
6 Answers Infosys, Microsoft, TCS, Wipro,
Why doesn't C support function overloading?
What is c mainly used for?
write a recursive program in'c'to find whether a given five digit number is a palindrome or not
Which driver is a pure java driver
What is a stream water?
How can I make it pause before closing the program output window?
How variables are declared in c?
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?
Which is the best sort method for library management?
Write a program to reverse a string.
0 Answers Global Logic, iNautix, TCS, Wipro,
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********