Difference between revisions of "ProvaTeorica 2013.02.14"
Jump to navigation
Jump to search
(Created page with "<h2> Esercizio c.2 </h2>") |
|||
Line 1: | Line 1: | ||
<h2> Esercizio c.2 </h2> | <h2> Esercizio c.2 </h2> | ||
+ | <syntaxhighlight lang="C"> | ||
+ | |||
+ | // foo(x,y) <x=2+y , y=2+x> | ||
+ | |||
+ | int g = 0; | ||
+ | |||
+ | csenter: | ||
+ | |||
+ | do | ||
+ | int l; | ||
+ | foo(l, g); | ||
+ | while(l!=2) | ||
+ | |||
+ | csexit: | ||
+ | |||
+ | g = 0; | ||
+ | |||
+ | </syntaxhighlight> |
Revision as of 16:00, 9 May 2014
Esercizio c.2
// foo(x,y) <x=2+y , y=2+x>
int g = 0;
csenter:
do
int l;
foo(l, g);
while(l!=2)
csexit:
g = 0;