# Programming Shortcut

## Monday, February 4, 2019

### Simple Arithmetic Operation in C Language

Hello Frinds! Welcome to my Website
C Language based program that is for basic Arithmetic operations like addition, subtraction, multiplication, and division. You can use this program both error(compiler and runtime error) free program just copy and paste the program and save your time.

C Program with the initial declaration.

---------Start code---------
#include<stdio.h>
#include<conio.h>
void main()
{
int a=17,b=4,sum,subtarction, multiplaction,divistion;
clrscr();
sum=a+b;
subtarction=a+b;
multiplaction=a*b;
divistion=a/b;
printf("Sum=%d\n",sum);
printf("Subtraction=%d\n",subtarction);
printf("Multiplaction=%d\n",multiplaction);
printf("Divistion=%d\n",divistion);
getch();
}
------End code-------

Output:  Sum=21
Subtraction=13
Multiplaction=68
Divistion=4

Note: Integer type variable only store non-friction vlaue

C Program with run time declearction.

---------Start code---------
#include<stdio.h>
#include<conio.h>
void main()
{
int a, b,sum,subtarction, multiplaction,divistion;
clrscr();
printf("Enter frist opertater value:");
scanf("%d", &a);
printf("\n");
printf("Enter secand opertater value:");
scanf("%d", &b);
printf("\n");
sum=a+b;
subtarction=a-b;
multiplaction=a*b;
divistion=a/b;
printf("Sum=%d\n",sum);
printf("Subtraction=%d\n",subtarction);
printf("Multiplaction=%d\n",multiplaction);
printf("Divistion=%d\n",divistion);
getch();
}
------End code-------

Output:  Enter frist opertater value:20
Enter secand opertater value:4
Sum=24
Subtraction=16
Multiplaction=80
Divistion=5

I make this programming and hope you are like the post if are you like the post you can please comment and Share the post to reach more people.