Make a program that will display the multiplication table, the out must depend upon the user input.
SAMPLE OUTPUT:
Please enter a number from 1 to 10: 2
2*1=2
2*2=4
2*3=6
2*4=8
Type: Posts; User: marlontoyo
Make a program that will display the multiplication table, the out must depend upon the user input.
SAMPLE OUTPUT:
Please enter a number from 1 to 10: 2
2*1=2
2*2=4
2*3=6
2*4=8
ok i done Thanks :)
Enter gender: f
FEMALE
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)...
why should i do to run this program?
when i input F the output is Female and when i input M the output is Male? Please help me
import java.io.*;
public class gender{
public static void main(String [] args) throws Exception{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
char gender;
int...