Answers for "c program for airthmetic operators"

C
0

c program for airthmetic operators

#include<stdio.h>

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);

}
Posted by: Guest on January-08-2022

Code answers related to "C"

Browse Popular Code Answers by Language