Why is my code not printing anything to stdout?
- by WM
I'm trying to calculate the average of a student's marks:
import java.util.Scanner;
public class Average
{
public static void main(String[] args)
{
int mark;
int countTotal = 0; // to count the number of entered marks
int avg = 0; // to calculate the total average
Scanner Scan = new…