multiplicationin c

Solutions on MaxInterview for multiplicationin c by the best coders in the world

showing results for - "multiplicationin c"
Josué
15 Feb 2016
1/*Program for multiplying two numbers*/
2#include <stdio.h>
3int main(){
4	int a, b, Product; //declare the variables that will be used, a will store the first number, b second number and Product, product.
5    printf("Enter the first number: \n"); //Prompts user to enter the first number.
6    scanf("%d", &a);//Accepts input and saves it to variable a
7    printf("Enter the second number: \n");
8    scanf("%d", &b);
9    sum = a * b; //Formular to multiply the two numbers.
10    printf("Product is %d\n", product);
11}
similar questions
queries leading to this page
multiplicationin c