13 lines
263 B
C
13 lines
263 B
C
|
/*
|
||
|
* Cours "Sémantique et Application à la Vérification de programmes"
|
||
|
*
|
||
|
* Josselin Giet 2021
|
||
|
* Ecole normale supérieure, Paris, France / CNRS / INRIA
|
||
|
*/
|
||
|
|
||
|
void main(){
|
||
|
int i = 9;
|
||
|
int j = -2;
|
||
|
int x = i % j; // a % b = a - b*(a/b)
|
||
|
assert(x == 1);
|
||
|
}
|