Senin, 28 Maret 2016

perulangan berabang

di sini saya akan memposting tenan perulangan percabangan dengan angka dengan menggunakan c++
di ini adalah inputan c++

#include <iostream>
#include <conio.h>
using namespace std;
main() {
int a;
cout<<"masukkan batas : ";cin>>a;
for ( int b=a; b>=1; b--)
 {
 for(int i=b;i>=1;i--)
  {
    cout<<b*i<<" ";
   }
   cout<<endl;
 }
  getch();}

dan ini hasil output yang mengukan batas 10

dan ini yang gunakan batas 5


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