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 ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x, y, z;
- Console.WriteLine("Please enter value for x");
- int.TryParse(Console.ReadLine(), out x);
- Console.WriteLine("Please enter value for y");
- int.TryParse(Console.ReadLine(), out y);
- Console.WriteLine("Please enter value for z");
- int.TryParse(Console.ReadLine(), out z);
- Console.WriteLine("(x+y)*z = " + (x+y)*z);
- Console.WriteLine("x*y + y*z = " + (x * y + y * z));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement