<span>getchar() only reads a single character input from any input stream.
getche() </span><span>reads a single character from the keyboard and displays immediately on output screen without waiting for enter key
scanf() reads the whole input line according to the data type you specified.</span>
Answer:
It allows the designer to focus on main logic without being distracted by programming languages syntax.
* Since it is language independent, it can be translated to any computer language code.
* It allows designer to express logic in plain natural language.
* It is easier to write actual code using pseudocode.
* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.
Explanation:
import java.util.Scanner;
public class JavaApplication58 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter a positive integer:");
String num = scan.nextLine();
for (int i = num.length()-1; i >=0; i--){
System.out.println(num.charAt(i));
}
}
}
I hope this helps!
Answer:
James Gleick believes that they immerse themselves in a rich textual world. The answer is C.