CLS
INPUT "Enter the first number"; a
INPUT "Enter the second number"; b
m = a
n = b
WHILE a <> 0
r = b MOD a
b = a
a = r
WEND
l = (m * n) / b
PRINT "HCF is "; b
PRINT "LCM is "; l
1. True
2. Usually true, but it depends on the search engine you're using. For example, Google lets you search for several words without commas.
Answer:
b. []
Explanation:
Arrays are represented using [] . When a method returns an array reference, the method header contains an entry of the type <data-type>[].
For example, a method test which returns a reference to integer array and takes no parameters is of the form:
int[] test();
Similarly a method list_chars which takes a String as an argument and returns an array of chars has the form:
char[] list_chars(String s);