180803015_tata Winda Lesmana_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 180803015_tata Winda Lesmana_1.docx as PDF for free.

More details

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

: Tata Winda Lesmana : 180803021 : 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]={ 'l','e','s','m','a','n','a' }, 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

Related Documents


More Documents from "Johanes Kevins"