Created
February 3, 2019 23:45
-
-
Save gavr123456789/976c1edc77883d07546d9767f34f5450 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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