#var $v1
#var $v2
#label while1
#if $v1 > 3 afterwhile1
#label while2
#if $v2 > 4 afterwhile2
$v2 = $v2 + 1
#print $v1 $v2
#goto while2
#label afterwhile2
$v1 = $v1 + 1
$v2=0
#print $v1 v2
#goto while1
#label afterwhile1
#print end $v1