public class MyClass {
public static void printChar(char ch1, char ch2, int numberPerLine){
int i = 0;
for (char c = ch1; c <= ch2; c++){
while (i < numberPerLine){
System.out.print(c + " ");
i += 1;
}
System.out.println("");
i = 0;
}
}
public static void main(String args[]) {
printChar('a', 'z', 10);
}
}
So far, this works by printing letters. If you need me to modify the code, I will.
Answer:
- \' is used to escape a single quote in a string enclosed in single quotes like;
my_string = 'this is John\'s ball'.
- \n is used to jump to a new line, Eg;
my_string = "Johns is a good boy\nbut he hates going to school."
the next set of the string after the '\n' character is displayed on the next line.
- \t is used to add a tab space to a string.
my_string = 'Jane is \thungry'
the character adds four character spaces before the word 'hungry'.
- \r adds a carriage return (or enter in keyboards) to start a new block paragraph in a string.
my_string = "Johns is a good boy\rbut he hates going to school."
Explanation:
Escape sequences in programming are used to format strings or output syntax of a program. They always begin with the backslash. Examples of escape sequence are " \' ", "\n", "\t", "\r", etc.
Answer:
Drop down list
Explanation:
You have not listed what the possible answers are, however a drop down list would be an option to accomplish this.
Answer:
if the landing page provides all kind information of information as to that site people usually like it or will most likely enjoy it
BRAINLIEST?????
Explanation:
Answer: Python
Explanation: All I know is that the programming language is Python.