source: CIVL/examples/arithmetic/moddiv.cvl@ 67da504

1.23 2.0 main test-branch
Last change on this file since 67da504 was 92f362b, checked in by Stephen Siegel <siegel@…>, 12 years ago

Added example from Ziqing about printing expression of form a%b/c.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1446 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 193 bytes
Line 
1#include <civlc.h>
2#include <stdio.h>
3
4$input int A;
5$input int B;
6$input int C;
7$assume A > 0;
8$assume B > 0;
9$assume C > 0;
10
11void main() {
12 printf("result of modulo is %d\n", A % (B * C));
13}
Note: See TracBrowser for help on using the repository browser.