fork download
  1. using System;
  2. using System.Globalization;
  3.  
  4. class Program {
  5. static void Main(string[] args)
  6. {
  7. float nota1, nota2, MEDIA;
  8. nota1=float.Parse(Console.ReadLine());
  9. nota2=float.Parse(Console.ReadLine());
  10.  
  11. MEDIA=((nota2+nota1)/2);
  12.  
  13. Console.WriteLine(MEDIA.ToString("F", new NumberFormatInfo{
  14. NumberDecimalSeparator = ".",
  15. NumberDecimalDigits = 1
  16. }));
  17. }
  18. }
Success #stdin #stdout 0.02s 16392KB
stdin
7.8
3.3
stdout
5.6