minicl55

Untitled

Nov 12th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. class Solution {
  5.     static void Main(String[] args) {
  6.         /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
  7.         int input = Console.Read();
  8.         int total = 0;
  9.         for (int i = input; i <= input; i++)
  10.         {
  11.             total += i;
  12.         }
  13.         Console.Write(total);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment