Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Tutorial_Project_1.Tutorial_1_Examples
- {
- class String
- {
- static void Main()
- {
- //Manipulate text
- string[] y = new string[] { "test1", "test2", "test3" };
- foreach (string z in y)
- {
- Console.WriteLine(z);
- }
- //You can convert things like decimals and strings etc with Convert.
- string age = "34";
- string sal = "97456.71";
- int g = Convert.ToInt32(age);
- Console.WriteLine(g / 2);
- Console.WriteLine(Convert.ToDouble(sal) * .02);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement