📜  multiplicationin - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:44.350000             🧑  作者: Mango

代码示例1
/*Program for multiplying two numbers*/
#include 
int main(){
    int a, b, Product; //declare the variables that will be used, a will store the first number, b second number and Product, product.
    printf("Enter the first number: \n"); //Prompts user to enter the first number.
    scanf("%d", &a);//Accepts input and saves it to variable a
    printf("Enter the second number: \n");
    scanf("%d", &b);
    sum = a * b; //Formular to multiply the two numbers.
    printf("Product is %d\n", product);
}