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 |
When should a far pointer be used?
What is void main () in c?
What are dangling pointers in c?
wat s the meaning of (int *)p +4;
Why is #define used?
What is difference between scanf and gets?
What are c identifiers?
What is spaghetti programming?
What are the types of pointers?
how i m write c program 1.check prime number 2.prime number series
how to find binary of number?
Why does not c have an exponentiation operator?