📌  相关文章
📜  c program for airthmetic operator - C 编程语言代码示例

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

代码示例1
#include

int main(){

int num1,num2;
Int add,sub,mul,div,mod;

printf(“\nEnter First Number :”);
scanf(“%d”,&num1);

printf(“\nEnter second Number :”);
scanf(“%d”,&num2);

add = num1 + num2;
printf(“sum of entered no’s are %d”,add);

sub = num1 - num2;
printf(“subtraction of entered no’s are %d”,sub);

mul = num1 * num2;
printf(“Multiplications of entered no’s are %d”,mul);

div = num1 / num2;
printf(“Divisions of entered no’s are %d”,div);

mod = num1 % num2;
printf(“Modulas of entered no’s are %d”,mod);

}