print the table 5 in loops
Answers were Sorted based on User's Feedback
Answer / kiran
{
int n = 5;
for(i=1;i<=10;i++)
printf("
%d x %d = %d",n,i,n*i);
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / tushar patil
#include<stdio.h>
#include<conio.h>
main()
{
int a=5,i;
printf("TABLE OF 5");
printf("
");
for(i=1;i<=10;i++)
{
printf("%d ",i*a);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mazahar
#include<stdio.h>
main()
{
int i,n=5;
for(i=0;i<=10;i++)
printf("%d*%d=%d",n,i,n*i);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is sizeof array in c?
Write a program to know whether the input number is an armstrong number.
What does it mean when the linker says that _end is undefined?
What is nested structure?
Explain setjmp()?
Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors
Why doesnt this code work?
What are the uses of pre-processor directives?
Explain why can’t constant values be used to define an array’s initial size?
what do you mean by defining a variable in our c code?