Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var gajiSekarang, ekspektasiGaji int
- fmt.Print("Masukkan Gaji Anda: ")
- fmt.Scan(&gajiSekarang)
- fmt.Print("Masukkan Gaji yang Anda Inginkan: ")
- fmt.Scan(&ekspektasiGaji)
- naikanGaji(gajiSekarang, ekspektasiGaji)
- fmt.Printf("\nGaji Anda Sekarang %d\n", gajiSekarang)
- }
- func naikanGaji(gajiAwal int, gajiAkhir int) {
- gajiAwal = gajiAkhir
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement