import java.util.*;
class even
{
public static void main (String arg[])
{
int a;
System.out.print ("\n\t Enter the number = ");
a=in.nextInt();
while (a>0)
{
if (a%2==0)
System.out.print ("\n\t "+a);
--a;
}
}
}
Note:
In this program, body of the loop will be executed till a is greater than 0. As you have
noticed a conditional statement in the body of the loop, this is the actual code in our program
which is checking that either the number is even or odd.
Wow! At last I got a weblog from where I can genuinely get useful information regarding my
ReplyDeletestudy and knowledge.
Also see my site: His Response
You really make it seem really easy along with your presentation however
ReplyDeleteI in finding this matter to be really something that I feel I would never understand.
It kind of feels too complex and very large for me.
I'm having a look ahead on your next post, I'll try to get the hang of it!
My site :: this hyperlink
Fantastic blog you have here but I was wanting to know if you knew of any message boards that
ReplyDeletecover the same topics discussed here? I'd really like to be a part of community where I can get feed-back from other knowledgeable people that share the same interest. If you have any suggestions, please let me know. Thank you!
Here is my website : found it
I read this post completely concerning the difference of latest and preceding technologies, it's amazing article.
ReplyDeletemy web site > this hyperlink
Fantastic goods from you, man. I have understand your
ReplyDeletestuff previous to and you're just too excellent. I actually like what you've acquired
here, really like what you're saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can't wait to read far more from you.
This is actually a tremendous website.
Also see my webpage: real love spells that work
What's up colleagues, its enormous post about tutoringand fully defined, keep it up all the time.
ReplyDeleteAlso see my site - I found it
Touche. Outstanding arguments. Keep up the amazing work.
ReplyDeleteAlso visit my website :: look what I found
It is perfect time to make some plans for the future and it is time to be happy.
ReplyDeleteI've read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you can write next articles referring to this article. I want to read even more things about it!
My site > description
It is not my first time to visit this site, i am
ReplyDeletebrowsing this site dailly and take fastidious facts from here all the
time.
Also visit my web-site :: visit
What's up, all is going nicely here and ofcourse every one is sharing facts, that's in fact good, keep up writing.
ReplyDeleteFeel free to surf my blog post - directory