Thursday, September 20, 2018

PERTEMUAN 1 : Tugas Latihan 1 & Latihan 2 Dasar Pemrograman

Membuat struktur sederhana Bahasa C++
Latihan 1 :
Output :


Input :
#include<stdio>
#include<conio>
main()
{
printf("   BIODATA MAHASISWA\n");
printf("===================================================\n");
printf("NIM = 13180212\n");
printf("Nama = Alfan Khudori\n");
printf("Kelas   = 13.1C\n");
printf("Telephone = 089648754318\n");
printf("Alamat = Jln. Pemuda Kranji, Bekasi Barat\n");
printf("===================================================\n");
getch();
}
Latihan 2 :
Output :
Input :
#include<stdio>
#include<conio>
main()
{
printf("   Pembelian Tiket Pesawat\n");
printf("===================================================\n");
printf("No Transaksi = 0001\n");
printf("Nama Lengkap = Alfan Khudori\n");
printf("Kelas Penerbangan  = Eksekutif\n");
printf("No Kontak = 089648754318\n");
printf("Alamat Lengkap = Jln. Pemuda Kranji, Bekasi Barat\n");
printf("Tanggal Pemberangkatan = 05 Juni 2018\n");
printf("Harga   = Rp. 250.000\n");
printf("Jumlah Beli = 2 tiket\n");
printf("Total = Rp. 500.000\n");
printf("===================================================\n");
getch();
}

Related Posts

PERTEMUAN 1 : Tugas Latihan 1 & Latihan 2 Dasar Pemrograman
4/ 5
Oleh

Subscribe via email

Like the post above? Please subscribe to the latest posts directly via email.