Skip to content

Commit

Permalink
Fixed Divide By Zero Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
RITURAJ2011 committed Oct 12, 2019
1 parent 7cf462e commit 17e7fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calci.c
Expand Up @@ -13,6 +13,6 @@ int main()
if(c==3)printf("Product is:%d",a*b);
if(c==4){
if(b==0)printf("divide by zero error not possible...");

else printf("division is %d",a/b)
return 0;
}

0 comments on commit 17e7fee

Please sign in to comment.