Hi,
Thanks to one and all.
After i read Integer Number from the User for example user enters 6789479.i need to know how many odd,even and zero digits are there in the number entered above.
So we need to read each digit and then use
int i = ... //however you read the input
if ((i % 2) == 0) {...
Sorry,i was trying to write this program in JAVA.so i am interested in knowing how to handle number entered by user and check how many odd,even and zero digits ae there in the Number entered by user.
Hi,
I want to write a unix script for vmstat every 10 Seconds .
In the Progrmme the code will be vmstat 10
I want to save it to a file.
I think we can give a parameter for example TWO Hours.
Thanks a lOt for your help.
Nan.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.