Plzzz help in this prbom
Attachments:
Aaditiyadav:
yes!!!
Answers
Answered by
1
program in java
import java.util.Scanner;
public class Program
{
public static void main(String[] args) {
Scanner obj=new Scanner(System.in);
int a=obj.nextInt();
int b;
System.out.println("enter a number="+a);
System.out.print("revers=");
while(a!=0){
b=a%10;
System.out.print(b);
a=a/10;
}
}
}
import java.util.Scanner;
public class Program
{
public static void main(String[] args) {
Scanner obj=new Scanner(System.in);
int a=obj.nextInt();
int b;
System.out.println("enter a number="+a);
System.out.print("revers=");
while(a!=0){
b=a%10;
System.out.print(b);
a=a/10;
}
}
}
Similar questions