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

Describe the steps to insert data into a singly linked list.

0 Answers  


How was c created?

0 Answers  


What is the difference between typedef and #define?

0 Answers  


How is = symbol different from == symbol in c programming?

0 Answers  


What is the scope of static variables?

1 Answers  






hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

0 Answers  


what is the difference between %d and %*d in c languaga?

7 Answers   TCS,


Why do we use c for the speed of light?

0 Answers  


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

0 Answers  


What is extern keyword in c?

0 Answers  


When is the “void” keyword used in a function?

1 Answers  


What is structure and union in c?

0 Answers  


Categories