Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Practical
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int sum = 0, i = 0, n = 0; double avg; Console.Write("Input the 10 numbers : "); do { Console.Write("Number-{0} :",i); n= Convert.ToInt32(Console.ReadLine()); sum +=n; ++i; }while( i < 10); avg=sum/10.0; Console.Write("The sum of 10 numbers is : {0}\nThe Average is : {1}\n",sum,avg); } } }
run
|
edit
|
history
|
help
0
Program
asdcsadxasxd
HMS abstract
Intuit // C# // Lecture_4 // Laba_#2 _ZAD#2
nthFromLastElement
jjj4
ConcurrentStack<T>
Compress in C#
shut down
321