Monday, June 24, 2013

Netbeans Lesson 7

Example 1. Write a program to print the output like below.
1
10
100
1000
.
.
10 term.
Program:-

int a,b;
a=1;b=1;
while (a<=10)
{
system.out.print(b)
b=b*10;
a++;
}

No comments:

Post a Comment

  A Potential Showdown: Kamala Harris vs. Donald Trump As the political landscape gears up for the next election cycle, the prospect of a fa...