Skip to main content

Contoh Rumus perulangan untuk aplikasi Processing - Odia's Note


Contoh 1

int d=10;

for(int i=0; i<=d; i++){  

    println(i);

}

Contoh 2

int d=5;
for(int i=0; i<d; i++){
          for(int a=5; a>i; a--){
  print('*');
         }
println();
}

Contoh 3

int d=5;
for(int i=0; i<=d; i++){
          for(int a=0; a<=i; a++){
  print('*');
         }
println();
}

Comments

Popular posts from this blog

How To be A prime Minister

The Prime Minister is possibly the most important person in the country and anyone over 18 is eligible for the job. It can't be that difficult, Gordon Brown managed it, and there's no reason why you can't start now, after all, William Hague made his first speech when he was 16. The point is, it's not as complicated or as difficult as the men in suits make it out to be, all you have to do is get people to vote for you. The first thing that you have to decide is whether you're going to start your own party or join one. If you join it may take a while for you to work your way up the ranks and by the time you get there everyone will probably hate you. On the other hand starting afresh involves lots of money to get representatives in different areas, that is unless you find a way of not paying them. You will also have to sort out your party's policies, basically what issues you want to tackle and what you believe in (NOTE: making yourself ruler of the wo...

Important Education For Children

As we Know Friends.. After  few days behind.. There's so much case about children.. start from the playgroup until Elementary school. Today I make a Post about How Important Education For Children.. Happy read..   Early childhood is a crucial stage of life in terms of a child's physical, intellectual, emotional and social development. Growth of mental and physical abilities progress at an astounding rate and a very high proportion of learning takes place from birth to age six. It is a time when children particularly need high quality personal care and learning experiences. Education begins from the moment the child is brought home from the hospital and continues on when the child starts to attend playgroups and kindergartens. The learning capabilities of humans continue for the rest of their lives but not at the intensity that is demonstrated in the preschool years. With this in mind, babies and toddlers need positive early learning experiences to help their intellec...