Jumat, 18 Maret 2016

Membuat huruf F dengan karakter

kali ini saya akan memposting tentang membuat huruf F dengan karaker menggunakan c++, selamat menyimak kawan.

terlebih dahulu inputkan yang ada di bawa ini di c++

#include <iostream>
#include <conio.h>
using namespace std;
 main() {
  char a='*';
  int f,i,c;

  cout<<"masukan nilai tinggi:";
  cin>>f;
  for(i=1; i<=f; i++){
  cout<<a;
  if(i==1)
  for(c=1; c<=3; c++)
  cout<<a;
  if(i==3)
  for(c=1; c<=3; c++)
  cout<<a;
  cout<<endl;
  }
getch ();
}

dan ini hasilnya


0 komentar:

Posting Komentar

Posting Lebih Baru Posting Lama Beranda

Diberdayakan oleh Blogger.

About us

Formulir Kontak

Nama

Email *

Pesan *

Find Us On Facebook

Translate

Popular Posts

Video Of Day

About

TechClue

Techclue Is A Multi layout Style Blogger Template. You Can Use This Template For Education Site As Well As For Simple Magazine Sites. Techclue Is The Perfect Combination Of Design.We install Lots Of Features Like Responsive Layout, SEO Optimization Etc.

Join Our Community!

Popular Posts

Recent Posts

Popular Posts

 

Followers

 

Flickr Gallery

Templates by Nano Yulianto | CSS3 by David Walsh | Powered by {N}Code & Blogger