google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 Write a Program to Simple Calculator in C

Write a Program to Simple Calculator in C

0

//Write a Program to Simple Calculator in C.

 

#include<stdio.h>

#include<conio.h>

   void main()

{

  int num1,num2,sum,mul,sub,div;

  clrscr();

  printf("\tEnter the value of ",num1);

  scanf("\t%d",&num1);

  printf("\tEnter the value of ",num2);

  scanf("\t%d",&num2);

  sum=num1+num2;

  sub=num1-num2;

  mul=num1*num2;

  div=num1/num2;

  printf("\n Sum of Two Numbers is =%d",sum);

  printf("\n Subtract of Two Numbers is =%d",sub);

  printf("\n Multiply of Two Numbers is =%d",mul);

  printf("\n Division of Two Numbers is =%d",div);

  getch();

  }

 

 

Output

 



Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top