Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c program for airthmetic operators

#include<stdio.h>

int main(){

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

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

printf(“
Enter 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);

}
Source by techtechinfo.com #
 
PREVIOUS NEXT
Tagged: #program #airthmetic #operators
ADD COMMENT
Topic
Name
5+8 =