Syntax

import java.*;
import java.io.*;
import java.util.*;

class do_while_loop
{
 public static void main(String arg[])
  {
   // 1 to 10 print by the using do-while loop
   int count=1;
   
    do
 {
  System.out.println("Count Value is : "+count);
  count++;
  } while(count <=10);
   
   
   }
 }
OUTPUT

Count Value is : 1
Count Value is : 2
Count Value is : 3
Count Value is : 4
Count Value is : 5
Count Value is : 6
Count Value is : 7
Count Value is : 8
Count Value is : 9
Count Value is : 10
See How to Implement This Program :
please Subscribed this tutorial to : Click here

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA