Advertisement
Adijata

Prva vježba 2013 RPR prvi zadatak

Oct 9th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 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 ConsoleApplication7
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             const double Č=1852;
  14.             Console.WriteLine("Unesite broj čvorova koji želite pretvorite");
  15.             double čvor = int.Parse(Console.ReadLine());
  16.             double broj=čvor*Č;
  17.             double rez =broj/1000;
  18.             Console.WriteLine("Brzina broda u km/h je: {0}", rez);
  19.             Console.ReadLine();
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement