You are on page 1of 1

1

/* Arithmetic operation of addition,substraction,multiplication and division */

#include<stdio.h>

#include<conio.h>

void main()

clrscr();

int a,b,c,d,e,f;

printf("enter two numbers");

scanf("%d%d",&a,&b);

c=a+b;

d=a-b;

e=a*b;

f=a/b;

printf("c=%d\nd=%d\ne=%d\nf=%d",c,d,e,f);

getch();

OUTPUT

enter two numbers10 5

c=15

d=5

e=50

f=2

You might also like