Advertisement
Sephinroth

prac 1 ex 6

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