Do-while loop example in perl language


$a = 10;

# do...while loop execution
do{
   printf "Value of a: $a\n";
   $a = $a + 1;
}while( $a < 20 );

No comments:

Post a Comment