180803001_mhd. Diky Setiawan_1.docx

  • Uploaded by: Johanes Kevins
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 180803001_mhd. Diky Setiawan_1.docx as PDF for free.

More details

  • Words: 64
  • Pages: 2
Nama NIM Grup Aslab

: Mhd. Diky Setiawan : 180803001 : P-1 : 1. Zainuddin Siregar (160803010) 2. Mutia Sari (150803023)

A. Source Code #include using namespace std; #define jumlah 10 int main() { int i; char huruf[jumlah]={'s','e','t','i','a','w','a','n'}, X[jumlah]={}, input; for(i=0;i<10;i++) { X[i]=' '; } ulangi: cout<<endl<<"Masukkan huruf: ";cin>>input; for(i=0; i<10; i++) { if(input==huruf[i])X[i]=huruf[i]; cout<<X[i]<<" "; } goto ulangi; }

B. Output

C. Penjelasan

Related Documents


More Documents from "Johanes Kevins"