Skip to content

Instantly share code, notes, and snippets.

@Edgar-P-yan
Created September 5, 2019 19:33
Show Gist options
  • Save Edgar-P-yan/5679bc7d853491cc2b980433c36ea2be to your computer and use it in GitHub Desktop.
Save Edgar-P-yan/5679bc7d853491cc2b980433c36ea2be to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int a, b, c, d;
int count = scanf("%d %d", &c, &d);
b = (c + d) / 2;
a = c - b;
printf("%d %d", a, b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment