Advertisement
ini_PlayeR

2A_Cara Menghitung Kecepatan

Feb 23rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 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 Menghitung_Luas
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Cara Menghitung Kecepatan\n");
  14.             double kec;
  15.             double waktu;
  16.             double jarak;
  17.             Console.Write("Jarak        : ");
  18.             jarak=Convert.ToInt32(Console.ReadLine());
  19.             Console.Write("Waktu        : ");
  20.             waktu=Convert.ToDouble(Console.ReadLine());
  21.             Console.Write("Kecepatan    : ");
  22.             kec=jarak/waktu;
  23.             Console.Write(kec);
  24.             Console.ReadKey();
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement