Skip to content

Instantly share code, notes, and snippets.

@gavr123456789
Created February 3, 2019 23:45
Show Gist options
  • Save gavr123456789/976c1edc77883d07546d9767f34f5450 to your computer and use it in GitHub Desktop.
Save gavr123456789/976c1edc77883d07546d9767f34f5450 to your computer and use it in GitHub Desktop.
void main(string[] args) {
int n=7;
int m=12;
int k=3;
int result=0;
result=(n/k)+(m/k);
if(n%k!=0)result++;if(m%k!=0)result++;
stdout.printf(@"n=$n, m=$m\nn Ост=$(n%k), m Ост=$(m%k)\n$result");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment