Suppose you have a program with a predefined slice of integers intSlice that contains three variables num1, num2, and num3.
Your task is to print all the intSlice elements multiplied by two, each on a new line.
Suppose you have a program with a predefined slice of integers intSlice that contains three variables num1, num2, and num3.
Your task is to print all the intSlice elements multiplied by two, each on a new line.
Sample Input 1:
1 2 3Sample Output 1:
2
4
6Create a free account to access the full topic