-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (28 loc) · 832 Bytes
/
Copy pathProgram.cs
File metadata and controls
33 lines (28 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevFApply
{
class Program
{
static void Main(string[] args)
{
if (args.Length <= 0 || args[0] == null)
args = new string[] { "El DevF rockea" };
ReverseString(args[0].ToString());
}
static void ReverseString(string data)
{
if (String.IsNullOrEmpty(data))
return;
char[] array = data.ToCharArray();
Array.Reverse(array);
Console.WriteLine(new String(array));
Console.WriteLine(data.Count(w => w.ToString().ToLower() == "e"));
Console.WriteLine("Press any key to quit...");
Console.ReadLine();
}
}
}