Membuat struktur sederhana Bahasa C++
Latihan 1 :
Output :
Input :
Output :
Input :
Latihan 1 :
Output :
#include<stdio>Latihan 2 :
#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();
}
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();
}
PERTEMUAN 1 : Tugas Latihan 1 & Latihan 2 Dasar Pemrograman
4/
5
Oleh
Alfan