Search
 
SCRIPT & CODE EXAMPLE
 

C

C Arithmetic Operators

// Working of arithmetic operators
#include <stdio.h>
int main()
{
    int a = 9,b = 4, c;
    
    c = a+b;
    printf("a+b = %d 
",c);
    c = a-b;
    printf("a-b = %d 
",c);
    c = a*b;
    printf("a*b = %d 
",c);
    c = a/b;
    printf("a/b = %d 
",c);
    c = a%b;
    printf("Remainder when a divided by b = %d 
",c);
    
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: vowel and consonant C 
C :: enum in c 
C :: add_to_cart how to call it woocommerce 
C :: c read file content 
C :: ** in c 
C :: how to reset all values of 2d vector to 0 
C :: write a c program to find size of variable 
C :: volatile keyword in c 
C :: c program that replace vowels in a string with char 
C :: check if pid exists c 
C :: windows forms picturebox change image 
C :: linked list using c 
C :: unsigned char c programming 
C :: c break statement 
C :: C strlen implementation 
C :: Float and Double Input/Output 
C :: declaration in c 
C :: c structure with pointer 
C :: prime numbers 
C :: print the name of a file c 
C :: check for duplicates c 
C :: how to read and write to fiel n c 
C :: marquee html code with right 
C :: largest value in u64 
C :: run a command in cmd with c 
C :: check if a number is even and bigger than or equal to 16 using bitwise 
C :: Unix socket I/O primitives 
C :: false and true in c 
C :: bc1q9rfht42zayr3yvxqjw8tm6v3tkwl93t35gegxl 
C :: Letters and Digits Total 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =