#include<stdio.h> int main(){ int num1,num2; int sum,sub,mul; double div; printf("Enter first number:"); scanf("%d",&num1); printf("enter second number:"); scanf("%d",&num2); sum=num1+num2; printf("\nsum of this value is:%d",sum); sub=num1-num2; printf("\nsub of this value is:%d",sub); mul=num1*num2; printf("\nmul of this value is:%d",mul); div=num1/num2; printf("\ndiv of this value is:%lf",div); return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter