pogram loop

 


//programs loop demo

int sum = 0;
for (int i = 1; i<=10; i++){
sum = sum + i;
}
textView.append("The num is " +sum+ "\n");

Comments

Popular posts from this blog

Introduction to Array

Brek statement and continue statement