Search
 
SCRIPT & CODE EXAMPLE
 

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

}
Comment

PREVIOUS NEXT
Code Example
C :: cut first part of string c 
C :: garbage collection and dangling reference 
C :: read from text file in c 
C :: function that reverses the content of an array of integers. 
C :: logarithmus c math.h 
C :: C program determines the height status for heights in cm 
C :: online code runner .c 
C :: C #define preprocessor 
C :: how to devowel string in c program 
C :: captive portal esp8266 
C :: creating an array of arrays or 2D array dynamically 
C :: fscanf stops at space 
C :: inline function in c example 
C :: snprintf with malloc 
C :: c %s 
C :: C do...while loop 
C :: C printf Declaration 
C :: filing in c 
Dart :: flutter rounded bottom sheet 
Dart :: flutetr stepper color 
Dart :: flutter print type 
Dart :: canonical tag 
Dart :: options != null "FirebaseOptions cannot be null when creating the default app." 
Dart :: raisedbutton shape flutter 
Dart :: how to change legend colour in SfCircularChart in flutter 
Dart :: get file type from file path flutter 
Dart :: flutter screen size 
Dart :: flutter column text direction 
Dart :: flutter padding between text and underline 
Dart :: dart empty check 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =