converting double into int on C#

后端 未结 0 880
孤城傲影
孤城傲影 2021-01-27 05:47
double Total = (midtermGrade + projectGrade + finalExamGrade) / 3;
int finalGrade = Convert.ToInt32(Total);

midterm, project, final are all double. fina

相关标签:
回答
  • 消灭零回复
提交回复
热议问题