Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created November 29, 2012 21:43
Show Gist options
  • Save jonpryor/4172120 to your computer and use it in GitHub Desktop.
Save jonpryor/4172120 to your computer and use it in GitHub Desktop.
using System;
namespace Total
{
class Total
{
static void Main()
{
int Total = 0;
for (int counter = 0; counter < 10; ++counter) {
Console.WriteLine("Skriv in siffra");
int Siffra = int.Parse(Console.ReadLine());
Total = Total + Siffra;
}
Console.WriteLine(Total);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment