Exercise on Looping
Exercise on Looping
Ans 1
data ConversionTable;
do Pounds = 0 to 200 by 100;
Kilograms = Pounds / 2.22;
output;
end;
run;
Ans 2
data MathTable;
do Integer = 1 to 50;
SquareRoot = sqrt(Integer); /* or Integer**0.5 */
Square = Integer**2;
output;
end;
run;