print the table 5 in loops

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static function in c?

618


How are Structure passing and returning implemented by the complier?

710


How can you return multiple values from a function?

626


What are pragmas and what are they good for?

568


What language is c written?

574






Tell us the use of fflush() function in c language?

634


What is the difference between new and malloc functions?

574


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

580


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

656


What is this infamous null pointer, anyway?

607


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1580


What does p mean in physics?

580


When can you use a pointer with a function?

564


Tell me what are bitwise shift operators?

653


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1490