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