Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Created July 21, 2016 14:37
Show Gist options
  • Save gabrielcesar/a1c56e85eeacd5750f00c834674f0c4e to your computer and use it in GitHub Desktop.
Save gabrielcesar/a1c56e85eeacd5750f00c834674f0c4e to your computer and use it in GitHub Desktop.
g) Difference
/*
* g
* Difference
*/
#include <stdio.h>
int main ( void )
{
int a;
int b;
int c;
int d;
scanf ( "%d", &a );
scanf ( "%d", &b );
scanf ( "%d", &c );
scanf ( "%d", &d );
printf ( "DIFERENCA =%d\n", ( a * b - c * d ));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment