source:
CIVL/examples/arithmetic/moddiv.cvl@
bb03188
| Last change on this file since bb03188 was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 198 bytes | |
| Rev | Line | |
|---|---|---|
| [9803bc1] | 1 | #include <civlc.cvh> |
| [92f362b] | 2 | #include <stdio.h> |
| 3 | ||
| 4 | $input int A; | |
| 5 | $input int B; | |
| 6 | $input int C; | |
| [3ff27cf] | 7 | $assume(A > 0); |
| 8 | $assume(B > 0); | |
| 9 | $assume(C > 0); | |
| [92f362b] | 10 | |
| 11 | void main() { | |
| 12 | printf("result of modulo is %d\n", A % (B * C)); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
