lab #2 question #4

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		Console.WriteLine("How many students are enrolled?");
	    int studentsTotal = int.Parse(Console.ReadLine());
		Console.WriteLine("How many are programming majors?");
		int programmingMajors = int.Parse(Console.ReadLine());
		decimal total =  programmingMajors/studentsTotal;
		Console.WriteLine("The percent is:" + (decimal) programmingMajors/studentsTotal);
	


		
	
		
	}
}
;