✅ converting fractions to percentages and getting an output of 0 no matter what?
public static void Percentages()
{
dpPerc = (dpMark / 35) * 100;
obpPerc = (obpMark / 7) * 100;
cpPerc = (cpMark / 100) * 100;
Console.WriteLine(dpPerc);
Console.WriteLine(obpPerc);
Console.WriteLine(cpPerc);
}
public static void Percentages()
{
dpPerc = (dpMark / 35) * 100;
obpPerc = (obpMark / 7) * 100;
cpPerc = (cpMark / 100) * 100;
Console.WriteLine(dpPerc);
Console.WriteLine(obpPerc);
Console.WriteLine(cpPerc);
}
the mark variables were user inputted integers but when i use this method to get percentages, i outputted them to check they were correct and they are always 0?