This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class GPACompute { | |
public static void main(String[] args) { | |
String[] course={"LT","ARW","Discrete","PBM","OM","ACP","ST2"}; | |
String[] input = new String[7]; | |
int[] credit = {2,3,3,3,2,3,3}; | |
System.out.println("-----GPA Calculation-----"); | |
Scanner kb = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
class program22{ | |
public static void main(String args[]){ | |
Scanner a = new Scanner(System.in); | |
System.out.print("Please enter a number : "); | |
int input = a.nextInt(); | |
System.out.println("Your number is " + input); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class program111 { | |
public static void main(String args[]){ | |
int[] numbers = {5,0,7}; | |
System.out.println("Java array before reverse"); | |
for(int i=0; i < numbers.length ; i++){ | |
System.out.print(numbers[i] + " "); | |
} | |
NewerOlder