Created
November 29, 2012 21:43
-
-
Save jonpryor/4172120 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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