1. package com.instaceofjavaforus;
    public class Reversenum {
    public static void main(String[] args) {

    int rev=0;
    int num=1234;
    while(num>0){
    int rem=num%10;
    rev=rem+(rev*10);
    num=num/10;

    }
    }
    }


Instance Of Java

We will help you in learning.Please leave your comments and suggestions in comment section. if you any doubts please use search box provided right side. Search there for answers thank you.
«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply

Select Menu