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 |
What is the difference between mpi and openmp?
Why should I use standard library functions instead of writing my own?
What is the proper way of these job Tell me about there full work
string reverse using recursion
What are directives in c?
what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
Why isn't any of this standardized in c? Any real program has to do some of these things.
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
Write a program with dynamically allocation of variable.
What are 'near' and 'far' pointers?
what is const volatile?