multiplication table in c

Solutions on MaxInterview for multiplication table in c by the best coders in the world

showing results for - "multiplication table in c"
Lisa
09 Sep 2017
1#include <stdio.h>
2
3int main(){
4	//declaring variables
5    int n,i,a,start,end;
6    //taking and printing the instructions
7    printf("Enter first number from where you want to start multiplication : \n");
8    scanf("%d",&start);
9     printf("Enter Last number from where you want to end multiplication : \n");
10    scanf("%d",&end);
11  	//using loops
12
13    for(n=start;n<=end;n++){
14        a=0;
15        for(i=1;i<=10;i++){
16            a+=n; //setting the value of a. i used addition instead of multiplication
17          //because computer takes too much time for multiplating numbers than doing addition
18          
19            printf("%d x %d = %d\n",n,i,a);
20
21        }
22        printf("Multiplication has ended of %d\n\n",n);
23    }
24
25
26    return 0;
27
28
29}
30
Maria José
30 May 2016
1#include <stdio.h>
2int main(){
3    int a, b, c, e;
4    printf("Enter table format: \n");
5    scanf("%d", &a);
6    printf("Enter end of table: \n");
7    scanf("%d", &e);
8    for(b = 0; b <= e; b++){
9        printf("%d * % d = %d\n", b, a, a*b);
10    }
11}
Amine
26 Feb 2016
1        printf(" %d x %d = %d \n ", number, i, number * i);
Luisa
26 Feb 2019
1#include <stdio.h>
2
3int main()
4{
5    for(int a = 1; a <=10;a++)
6    {
7        
8        printf("\n%4d",a);
9        for (int b = 2; b<=10;b++)
10        {
11            
12            printf("%4d",a*b);
13            
14            
15        }
16        
17    }
18
19    return 0;
20}
Giorgio
09 Jan 2018
1#include <stdio.h>
2int main()
3{
4    // declaring table
5    int table[10][10];
6
7
8    int sum = 0;
9    // loop
10    for(int i = 0; i < 10; i++){
11        printf("%d table starting \n\n",i + 1);
12        for(int j = 0; j < 10; j++){
13             // using addition instead of multiply for better performance
14            sum += (i + 1);
15            //
16            table[i][j] = sum;
17            // printing table
18            printf("%d x %d = %d \n",i + 1,j + 1,table[i][j]);
19        }
20        sum = 0;
21        printf("\n");
22    }
23
24}
Wilhelm
05 Jun 2020
1//use the "*"
2
3/*var*/ * /*var*/;
queries leading to this page
multiplication table in c programmultiplication table in c using arraymultiplication table in cmultiplication table program in c using for loopc program for print multiplication table using while loopprint multiplication table in chow to make the full multiplication table in cc program to print multiplication table using two dimensional array c program to print multiplication tablemultiplication table program in c using methoda c programe to multiplication tablec program to generate multiplication table while loopdevelop a c code to print the multiplication table of any numberc print multiplication tablehow to create a multiplication table in chow to make multiplication table in cc program to create multiplication table of a numberc program to print multiplication table of any numbermultiplication table using cmultiplication table in c programmingc program multiplication tablewrite a c program that will print a multiplication table of given numbermultiplication table code in chow to print the multiplication table in cmultiplication array in cmultiplication table in c language of 2d arraya c program to print multiplication table of any number multiplication table of a given number in c pseudo codewrite a c program multiplication tablec program to generate multiplication table of a given numberc program to generate a multiplication tablec origram for print multiplication tablec program to print the multiplication tablewrite a program to print the multiplication table of a given number n print multiplication table in c using whilemultiplication table function cc program for multiplication tablemultiplication table using c languagec programming multiplication tableprinting multiplication table in cmultiplication in chow to crate the multiplication table in center a number and get multiplication table c programprint the multiplication of the given number cprint the multiplication table of the number chow to print multiplication table in cwrite a c program to print multiplication table of any numberprint the multiplication of the number cc program to generate multiplication tablemultiplication table in c using functionto print multiplication table of any number in cmultiplication table in cwrite a program to display multiplication table for a given numbermultiplication code in c write a program in c to display the multiplication table of a given integerprogramming for multiplication table in cmultiplication table of a given number in cmultiplication table c if statementc program for print multiplication tablewrite a program to print multiplication table of a given numberprogram to print the multiplication table in cc program to print multiplication table of a numberc program to print multiplication table of numberhow to make the multiplication table in cc multiplication tablemultiplication table in c using aryou are requested to write a c program to print multiplication table of a numberwrite a program in c that prints a multiplication table from 1x1 to 10x10 using the for loop write a program to show multiplication table of a given number how to print a multiplication table in cmultiplication table program in c using arraythe multiplication table in cmultiplication table in c 1 to 10c print multiplication table in matrixmultiplication table in c