0% found this document useful (0 votes)
16 views1 page

Arithmetic Operations

The document shows C code that performs basic arithmetic operations like addition, subtraction, multiplication and division on two variables and prints the output. It takes in two integer values, performs the four operations on them and stores the results in a third variable before printing.

Uploaded by

lohith sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Arithmetic Operations

The document shows C code that performs basic arithmetic operations like addition, subtraction, multiplication and division on two variables and prints the output. It takes in two integer values, performs the four operations on them and stores the results in a third variable before printing.

Uploaded by

lohith sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1 //user input

2 #include<stdio.h>
3
4 int main()
5 {
6 int i=9,j=3,k;
7
8 k=i+j;//addition +
9 printf("The addition of %d and %d is %d\n ",i,j,k);
10
11 k=i-j;
12 printf("The subtraction of %d and %d is %d\n ",i,j,k);
13
14 k=i*j;
15 printf("The multiplication of %d and %d is %d\n ",i,j,k);
16
17 k=i/j;
18 printf("The division of %d and %d is %d\n ",i,j,k);
19
20
21
22
23 return 1;
24 }
25
26

You might also like