TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Java - Do While Statement
Senthilvelan Sambamoorthy
Aug 20
2016
Code
506
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ssvdowhile.rar
import
java.io.*;
class
ssvdowhile
{
public
static
void
main(String arg[])
throws
IOException
{
String t;
int
c,n;
c=
0
;
DataInputStream dr =
new
DataInputStream(System.in);
System.out.print(
"Enter a whole Number : "
);
t = dr.readLine();
n = Integer.parseInt(t);
do
{
n = n/
10
;
c = c+
1
;
}
while
(n !=
0
);
System.out.println(
"\nThe given Number is a "
+ c +
" Digit Number"
);
}
}
Java
Do While Statement