Addition , Subtraction , Multiplication , Division of two numbers

/* Write a program to find Addition , Subtraction , Multiplication , Division of two numbers */

#include<stdio.h>
 #include<conio.h>
 void main()
 {
 int  x , y, sum , sub , mul , div ;
 clrscr();
 printf(" Enter two numbers ");
 scanf("%d%d",&x,&y);
 sum=x+y;
 sub = x - y ;
 mul = x * y ;
 div = x / y ;
 printf("\n Sum of  %d + %d = %d ", x , y , sum );
 printf("\n Subtraction of %d - %d = %d ", x , y ,sub );
 printf("\n Multiplication of %d * %d = %d ", x ,  y , mul ) ;
 printf("\n Division of %d / %d = %d = %d ", x , y , div );
 getch();
 }

Who's online

We have 14 guests and one member online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)