import java.util.Scanner;
public class JavaApplication70 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Input a String:");
String txt = scan.nextLine();
System.out.println("Input an integer:");
int num = scan.nextInt();
String newTxt = "";
int w = 0;
for (int i = txt.length()-1; i >= 0; i--){
char c = txt.charAt(i);
while (w < num){
newTxt += c;
w++;
}
w = 0;
}
System.out.println(newTxt);
}
}
I hope this helps!
Answer:
B- label
Explanation:
A label is an entry such as a text within a cell that describes particular rows and columns. Labels are usually found at the top of the particular row/column they are identifying.
Hence, the texts "2016 Sales" and "Travel Expenses" are labels that identify cells such as the values of the sales in 2016 of a company and expenses spent on travel in a year of a family.
Answer:
Please see the attached image
Explanation:
Answer:
Explanation:
The following code is written in Java. It creates the function random_marks as requested. It uses three for loops to go concatenating the correct number of apostrophes, quotes, and pairs to the output string before returning it to the user. A test case was added in main and the output can be seen in the attached picture below.
class Brainly {
public static void main(String[] args) {
String output = random_marks(3,2,3);
System.out.println(output);
}
public static String random_marks(int apostrophe, int quotes, int pairs) {
String output = "";
for (int x = 0; x < apostrophe; x++) {
output += '\'';
}
for (int x = 0; x < quotes; x++) {
output += '\"';
}
for (int x = 0; x < pairs; x++) {
output += "\'\"";
}
return output;
}
}