180803021_fitria Khairani_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 180803021_fitria Khairani_1.docx as PDF for free.

More details

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

: Fitria Khairani : 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]={'k','h','a','i','r','a','n','i'}, 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

More Documents from "Johanes Kevins"