Skip to content

Commit

Permalink
First Version
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-israr committed Oct 12, 2019
0 parents commit af83f24
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions calci.c
@@ -0,0 +1,16 @@
#include <stdio.h>

int main()
{
printf("Enter two Numbers:\n");
int a,b;
scanf("%d %d",&a,&b);
printf("Enter Choice:\n 1 for Add \n 2 for Subtract \n 3 for Multiply \n 4 for Divide\n ");
int c;
scanf("%d",&c);
if(c==1)printf("Sum is:%d\n",a+b);
if(c==2)printf("Diff is:%d",a-b);
if(c==3)printf("Product is:%d",a*b);
if(c==4)printf("Quotient is%d",a/b);
return 0;
}

0 comments on commit af83f24

Please sign in to comment.