Answer:
The solution code is written in Python:
- mystery_string = "Programming"
- output = ""
-
- for x in mystery_string:
- output += x
- print(output)
Explanation:
Firstly, create a variable mystery_string to hold a random string (Line 1).
Create an output variable to hold an output string (Line 2).
Create a for-loop to traverse the mystery_string character by character (Line 4). In the iteration, get a character from the mystery_string, and concatenate it with output string (Line 5). Print the output string (Line 6) before proceed to the next iteration.
Answer:
vxxgxfufjdfhgffghgfghgffh
Answer:
I have Lamborghini Centenario as my profile pic. :)
Explanation:
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter two integer numbers");
int num1 = in.nextInt();
int num2 = in.nextInt();
int newSum=num1+10;
System.out.println("The first number is "+num1);
do{
System.out.println(newSum);
newSum +=10;
}while (newSum <=num2);
}
}
Explanation:
Using Java Programming language
- Prompt user for the two inputs and save them as num1 and num2(Using the scanner class)
- Create a new Variable newSum = num1+10
- Create a do...while loop to continually print the value of newSum, and increment it by 10 while it is less or equal to num2