answersLogoWhite

0


Best Answer

#include
#include
void main()
{ int
printf("\nEnter the no. upto which the multiplication table is to be displayed:");
scanf("%d",&n);

for(i=1;i<=n;i++)
{ printf("\n%d TABLE:\n",i);
for(j=1;j<=10;j++)
printf("d=%d\n",i,j,i*j);
}
getch();
}
If the ans helps you,plz increase the trust point.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

void print1_to_n (unsigned n) {

for (unsigned num=1; num<=n; ++num) printf ("%d ", num);

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a C program to print the table from 1 to n side by side?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a java program that displays two tables side by side?

class table{public void sMethod(){for(int a=1;a


Write the program that will ask the user to enter a number of per side of a square and display its outline?

#include&lt;stdio.h&gt; int main() { int side,area of square; print f("Enter the length of side\n"); scan f("%d",&amp;side); area of square=side*side; print f(the area of square is %d\n"area of square); return 0; }


Write short note on a web server program?

no,i want answer from your side


How to write my resume formate?

You create a table that you're on one side and the other at your jobs


How do you write a program to input the side of a square and print its area and perimeter?

1 CLS 2 PRINT "Please to tell me the length of the side of the square." 3 INPUT S 4 PRINT 5 PRINT "The perimeter of the square is "; 4 * S 6 PRINT 7 PRINT "The area of the square is "; S ^ 2 8 PRINT 9 PRINT "That was truly a total blast. Would you like to play again ? 'Y' or 'N' ." 10 INPUT A$ 11 IF A$ = "Y" or A$ = "y" then PRINT "Goody! " : GOTO 2 12 IF A$ = "N" or A$ = "n" then PRINT "Well OK then. Goodbye": END 13 PRINT: PRINT "Please to type a 'Y' to play again, or a 'N' to quit for now." 14 GOTO 10


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


What is a side table?

A side table is something you set along side a chair or couch. Where as you have the coffee table that's out in the middle of the room


On which side do you print a transparency?

One should print at the rough side of the transparency, the smooth side will not absorb ink. Make sure that the printer supports transparencies.


About how much does a side table cost?

The price of a side table varies depending on the style and the retailer. They can range from $19 to $59. A side table is very inexpensive.


What side are the metals found on the table?

Metals are located on the left side of the Periodic Table.


Can you hit the ball in table tennis before it touches your side of the table?

No the ball must touch your side of the table before you can hit it


On which side does the isulators found in periodic table?

Elements that are insulators are on the right side of the periodic table.