#include stdio.hint main() {int op1, op2, mul;// variable declarationop1 = 5;// variable definition
编程学习网为您整理以下代码实例,主要实现:C语言乘法运算,希望可以帮到各位朋友。
#include <stdio.h>
int main() {
int op1, op2, mul; // variable declaration
op1 = 5; // variable deFinition
op2 = 3;
mul = op1 * op2; // multiplication operation
printf("Output of %d multiplIEd by %d is %d", op1, op2, mul);
}