Java Code
Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems. Software- IntelliJ IDEA Community Edition 2017.2.6 x64, Java JDK 9. 1. Java Program to print fibonacci series upto nth term. import java.util.Scanner; public class Main { public static void main(String[] args) { int a = 0 , b = 1 , sum = 1 ; Scanner reader = new Scanner(System. in ); // Reading from System.in System. out .println( "Enter a number: " ); int n = reader.nextInt(); reader.close(); for ( int i = 0 ; i < n; i++) { System. out .print( " " +sum); sum = a + b; a = b; b = sum; } } } Output- Enter a number: 6 1 1 2 3 5 8 Process finished with exit code 0 2. Java Program to print ASCII value of Character entered by user. import java.uti