Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             /*int iloscwierszy = 5;
  14.             for (int i = 0; i < iloscwierszy; i++)
  15.             {
  16.                
  17.             }*/
  18.             //string napisstopniecelsjusza;
  19.             //Console.WriteLine("Podaj temperaturę w stopniach Celsjusza");
  20.             //napisstopniecelsjusza = Console.ReadLine();
  21.             //double stopniecelsjusza = Double.Parse(napisstopniecelsjusza);
  22.             //double stopniefahrenheita = ((9.0 / 5.0) * stopniecelsjusza + 32);
  23.             //Console.WriteLine(stopniecelsjusza + " stopni Celsjusza to " + stopniefahrenheita + " stopni Fahrenheita");
  24.  
  25.             //string napismasa, napiswzrost;
  26.             //Console.WriteLine("Podaj swoją wagę w kilogramach");
  27.             //napismasa = Console.ReadLine();
  28.             //Console.WriteLine("Podaj swój wzrost w metrach");
  29.             //napiswzrost = Console.ReadLine();
  30.             //double masa = double.Parse(napismasa);
  31.             //double wzrost = double.Parse(napiswzrost);
  32.             //Console.WriteLine(masa + " " + wzrost);
  33.             //double bmi = (masa / Math.Pow(wzrost, 2.0));
  34.             //Console.WriteLine("Twoje BMI wynosi " + bmi);
  35.  
  36.             //double wyraz, suma;
  37.             //double q = Math.Sqrt(5);
  38.             //double pierwszyWyraz = 1;
  39.             //wyraz = pierwszyWyraz;
  40.             //suma = 0.0;
  41.             //for (int i = 1; i < 800; i++)
  42.             //{
  43.             //    Console.WriteLine($"Wyraz {i}: {wyraz}");
  44.             //    suma += wyraz;
  45.             //    wyraz *= q;
  46.             //}
  47.             //Console.WriteLine($"Suma to: {suma}");
  48.         }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement