Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gs-niteesh/5da0c9fe35072b10a30c5dc0b241b735 to your computer and use it in GitHub Desktop.
Save gs-niteesh/5da0c9fe35072b10a30c5dc0b241b735 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int a, b;
scanf("%d\n%d\n", &a, &b);
int c = a + b;
int d = a - b;
int e = a * b;
int f = a / b;
int g = a % b;
printf("%d\n", c);
printf("%d\n", d);
printf("%d\n", e);
printf("%d\n", f);
printf("%d\n", g);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment