Skip to content

Commit

Permalink
Update calci.c
Browse files Browse the repository at this point in the history
  • Loading branch information
RITURAJ2011 committed Oct 12, 2019
1 parent af83f24 commit 7cf462e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion calci.c
Expand Up @@ -11,6 +11,8 @@ int main()
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);
if(c==4){
if(b==0)printf("divide by zero error not possible...");

return 0;
}

0 comments on commit 7cf462e

Please sign in to comment.