print the table 5 in loops

Answers were Sorted based on User's Feedback



print the table 5 in loops..

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

print the table 5 in loops..

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

print the table 5 in loops..

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

Post New Answer

More C Interview Questions

What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }

1 Answers   Google,


#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {4,6,3,1}, {2,9,0,6}}; int *p; int (*q)[4]; p=(int*)a; q=a; printf("\n%u%u",p,q); p++; q++; printf("\n%u%u",p,q); getch(); return 0; } what is the meaning of this program?

2 Answers  


Why is main function so important?

0 Answers  


Explain how can I read and write comma-delimited text?

0 Answers  


How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.

1 Answers   HP, TCS,






Write a program for Overriding.

0 Answers  


write a program to insert an element at the specified position in the given array in c language

5 Answers   Appin, IBM,


Why are algorithms important in c program?

0 Answers  


write a programe to find the factorial of given number using recursion

3 Answers  


Why do we use c for the speed of light?

0 Answers  


how to do in place reversal of a linked list(singly or doubly)?

3 Answers  


what is the role you expect in software industry?

0 Answers   HCL,


Categories