Practice Programs for Java
Write a program and simple display “Helo world……My name is Ali Haider” (by System.out.print statement ) Write a program that get your roll number and then display it on the screen. (by System.out.print statement & int n=input.nextInt();) Write a program that get input from user in two variables and program show sum, subtraction, multiply and divide of these two values. (by variables) Write a program for ABC bank system; user ask to enter the amount to deposit in saving account, number of year for save the amount and interest rate in percentage. Program should display the the net amount after given number of year. (simple arithmtic operator) Write a program that ask from user to enter two numbers in to different variable and then the program decide and show that which value is greater.(by if statement) Write a program that swap the value; such that user enter two integre values in two different variables and then s...