-
-
Save zhuharev/e9c3178c82f0d59fcb65d2bc4663b3c5 to your computer and use it in GitHub Desktop.
main.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ConsoleApplication1 | |
{ | |
class ConsoleApplication1 | |
{ | |
public static void Main (string[] args) | |
{ | |
int sum = 0; | |
for (int i=0; i<10; i++) { | |
Console.Write("Введите число {0}:", i+1); | |
sum = sum + int.Parse(Console.ReadLine()); | |
} | |
Console.WriteLine("Сумма: {0}", sum); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment