Leave a Reply 3

Your email address will not be published. Required fields are marked *


skywalker

skywalker

Image link is dead.

pojo

pojo

public static void main(String[] args) {
int num=5;
int sum;
do{
sum+=num;
}while ((num–)>1);
System.out.println(“The sum is “+ sum +”.”);

}

Vasily

Vasily

d

Compilation fails. Variable sum might not hav been initialized