answersLogoWhite

0


Best Answer

void main()

{

int a,b,c,d;

clrscr();

printf("\n Enter the number for table = ");

scanf("%d",&a);

printf("\n Enter the number up to which you want to see the table = ");

scanf("%d",&b);

for(c=1;c<=b;c++)

{

d=a*c;

printf("%d * %d = %d\n", a,c,d);

}

getch();

}

User Avatar

Wiki User

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

Wiki User

11y ago

tablesNo%=7

CLS

FOR timesNo%=1 TO 12

PRINT timesNo%; " X "; tablesNo%; " = "; timesNo%*tablesNo

NEXT

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program to print multiplication table using while loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write multiplication table program in php?

// example of 1..12x12 table for($i = 1; $i &lt;= 12; $i++) { for($j = 1; $j &lt;= 12; $j++) { print ($i * $j) ." "; } print "\n"; }


How do you write program c of table 5?

#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i


Write an Algorithm for multiplication table of an integer?

int firstNumber,secondNumber for(firstNumber = min; firstNumber &lt;= max; firstNumber++); { for(secondNumber = min; secondNumber &lt;=max; secondNumber++); int result firstNumber * secondNumber; }


How Write javascript program to display multiplication table of 2 without accepting input from user?

Use a counted for loop. On each iteration, multiply the control variable by 2 and print the result.


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Is a multiplication table that you can print out for a seventh grader?

By 7th grade you should know your multiplication..


Write a program in vbscript to display a multiplication table in web page?

Option explicit Dim val,indx val=inputbox("enter any number") For indx= 1 to 10 print val&amp;"*"&amp;indx&amp;"="&amp;val&amp;"*"indx Next


How to write C multiplication table?

/****************************************** * C Program to print MultiplicationTable * * Author of the Program: M.JAYAKUMAR..* * Date 23 Nov 2006 * * ***************************************/ #include&lt;stdio.h&gt; main() { int i, p=1, table[10]; /* define integres and array */ /* *************************** * Output Formating Begins * ***************************/ for(i=0;i&lt;61;i++) printf("#"); printf("\n# Program to print Multiplication table of any number"); printf("\n# NOTE: To exit type 0 \n"); for(i=0;i&lt;61;i++) printf("#"); /* *************************** * Output Formating ENDS * ***************************/ while(p != 0) { printf("\nWhich table "); scanf("%d",&amp;p); /* takes input from input */ for(i=0;i&lt;10;i++) /* Fills the array */ { if(p==0) /* Stratagy to exit the program Benins */ { printf("Exiting\n"); break; } /* Stratagy to exit the program ends */ table[i]=i+1; /* Fills the array with numbers 1 - 10 */ printf("%2d x %2d = %2d\n", p, table[i], p * table[i]); } } }


Write a algorithm for multiplication tabel for an integer?

Algorithm: 1. From the user collect the integer whose table is required 2. Use a loop with loop counter starting with 0x01 and ends till the table value is required 3. start multiplication the input number with the loop variable and print the result.


Write a program in C plus plus language that will receive two numbers from the user and print out a multiplication table?

A multiplication table requires more than two numbers so I'll assume you really meant to say print the product of the two numbers. #include &lt;iostream.h&gt; int main{ int x, y; cout &lt;&lt; "Please enter the 1st number: "; cin &gt;&gt; x; cout &lt;&lt; "Please enter the 2nd number: "; cin &gt;&gt; y; cout &lt;&lt; "The product is: " &lt;&lt; x * y; return 0; };


Write a qbasic program to accept a no and print it multiple table?

Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end


Write a Unix program that generates a multiplication table?

$vi multable.sh echo "enter the value of n:" read n i=1 for((i=1;i&lt;=10;i++)) do echo " $n * $i = `expr $n \* $i`" done