Advertisement
Aliendreamer

simple calculations

Jun 13th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4.   public class Program
  5.     {
  6.         public static void Main(string[] args)
  7.         {
  8.           int n=int.Parse(Console.ReadLine());
  9.           for(int i=0;i<n;i++)
  10.           {
  11.             double a=double.Parse(Console.ReadLine());
  12.             double b=double.Parse(Console.ReadLine());
  13.             double result=Math.Round((a/b),???);
  14.             Console.WriteLine(result);
  15.           }    
  16.            //eто така е в цикъл но на мястото на ??? трябва да има нещо друго
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement