Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2.  
  3. namespace z6
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.Write("a = ");
  10. double a = double.Parse(Console.ReadLine());
  11. Console.Write("b = ");
  12. double b = double.Parse(Console.ReadLine());
  13. Console.Write("c = ");
  14. double c = double.Parse(Console.ReadLine());
  15. //double res = a * b;
  16. Console.Write("(" + "{0:#.##}", a + " + ");
  17. Console.Write("{0:#.##}", b + ")" + " + ");
  18. Console.Write("{0:#.##}", c + " = ");
  19. Console.Write("{0:#.##}", a + " + (");
  20. Console.Write("{0:#.##}", b + " + ");
  21. Console.Write("{0:#.##}", c + ")");
  22. Console.ReadKey();
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement