multiplication table using c

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

showing results for - "multiplication table using c"
Valentina
22 Apr 2020
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
Moussa
26 Sep 2017
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}
Leigh
20 May 2016
1        printf(" %d x %d = %d \n ", number, i, number * i);
Enrico
08 May 2017
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}
queries leading to this page
enter a number and get multiplication table c programc origram for print multiplication tablemultiplication table in c using arraywrite a c program multiplication tableprogram to print the multiplication table in cmultiplication table program in c using methodhow to print multiplication table in cmultiplication table of a given number in c pseudo codemultiplication table function cc program to create multiplication table of a numberprint multiplication table in cc program to print multiplication tablemultiplication table using cc program for print multiplication table using while loopmultiplication table c if statementprint multiplication table in c using whilec program to generate a multiplication tableprogramming for multiplication table in cprint the multiplication of the given number cmultiplication table in c using arc program multiplication tablewrite a c program that will print a multiplication table of given numberc programming multiplication tablec program for print multiplication tablemultiplication table in cc print multiplication table in matrixmultiplication table program in c using arraymultiplication code in cmultiplication table program in c using for loopc program for multiplication tablemultiplication table using c languagec program to generate multiplication table of a given numbermultiplication table of a given number in cc program to generate multiplication table while loopto print multiplication table of any number in cdevelop a c code to print the multiplication table of any numberc program to print multiplication table of numberwrite a program to display multiplication table for a given numberprinting multiplication table in cc multiplication tableprint the multiplication of the number cmultiplication in cyou are requested to write a c program to print multiplication table of a numberwrite a c program to print multiplication table of any numbermultiplication table in c programminghow to print a multiplication table in chow to print the multiplication table in cwrite a program in c that prints a multiplication table from 1x1 to 10x10 using the for loop multiplication table in cmultiplication table in c 1 to 10c program to print the multiplication tablec print multiplication tablec program to print multiplication table of any numberhow to create a multiplication table in chow to make the multiplication table in ca c programe to multiplication tablemultiplication table in c programwrite a program to print multiplication table of a given numberhow to crate the multiplication table in cwrite a program to show multiplication table of a given number c program to generate multiplication tableprint the multiplication table of the number cwrite a program to print the multiplication table of a given number n write a program in c to display the multiplication table of a given integermultiplication table code in ca c program to print multiplication table of any number how to make multiplication table in chow to make the full multiplication table in cc program to print multiplication table of a numbermultiplication table in c using functionthe multiplication table in cmultiplication table using c