Create a program to use the function to determine the difference between two time (hours). Suppose the difference between the hours of 4:30 to 6:00 is 90 minutes. There are 2 arguments function, namely the first hour and the second hour (greater than the first hour). Hint: make clock structure (with unit hours and minutes).
========================================================================
Buatlah program menggunakan function untuk menentukan selisih antara dua waktu (jam). Misalkan selisih antara pukul 4.30 dengan 6.00 adalah 90 menit. Terdapat 2 argumen function yaitu jam pertama dan jam kedua (lebih besar dari jam pertama). Petunjuk : buat struktur jam (dengan unit jam, dan menit).
Script Program :
Screenshot :
Try It and Good Luck!!!
No comments:
Post a Comment