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 |
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
How can you increase the size of a dynamically allocated array?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is a program flowchart and how does it help in writing a program?
how to write optimum code to divide a 50 digit number with a 25 digit number??
write a program in c language to print your bio-data on the screen by using functions.
6 Answers College School Exams Tests, IBM,
What is static memory allocation?
what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?
Is null valid for pointers to functions?
How to find the usage of memory in a c program
Explain what are the different file extensions involved when programming in c?
here is a link to download Let_Us_C_-_Yashwant_Kanetkar