Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- int[] variable = new int[number];
- for (int i = 0; i < number; i++)
- {
- variable[i] = char.Parse(Console.ReadLine());
- }
- int sum = variable.Sum();
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement