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

identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


void main() { int a=1; while(a++<=1) while(a++<=2); }

4 Answers   HCL,


What is the use of define in c?

0 Answers  


What is enumerated data type in c?

0 Answers  


What is the purpose of type declarations?

0 Answers  






Tell me the use of bit field in c language?

0 Answers  


What does a run-time "null pointer assignment" error mean?

2 Answers  


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


Write a program to interchange two variables without using the third variable?

17 Answers   Accenture, College School Exams Tests, Infotech,


program to find the second largest word in a paragraph amongst all words that repeat more thn twice

4 Answers   CTS, iGate,


Explain how can you check to see whether a symbol is defined?

0 Answers  


Explain the difference between exit() and _exit() function?

0 Answers  


Categories