Jump to content

User talk:Haval jalal

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Kokrdnaway 5 zhmara: int n1, n2, n3, n4, n5, s;

           double avg;
           Console.WriteLine("enter intgere");
           
           n1 = int.Parse(Console.ReadLine());
           n2 = int.Parse(Console.ReadLine());
           n3 = int.Parse(Console.ReadLine());
           n4 = int.Parse(Console.ReadLine());
           n5 = int.Parse(Console.ReadLine());
           avg = double.Parse(Console.ReadLine());
           s = n1 + n2 + n3 + n4 + n5;
            avg = (float) s / 5;
           Console.WriteLine("sum={0}",s);
           Console.WriteLine("avg={0}",avg);


By:haval jalal

Start a discussion with Haval jalal

Start a discussion