1.

Write a program to input a three digit number and print it's reverse. BASIC​

Answer»

Answer:

If N=123 the ans =321

Explanation:

import java.util.*;

class reverse

{

public static void NAME (String ARGS[])

{

Scanner sc =new Scamee(Systm.in);

int n,temp,rev,REM;

System.out.println("Enter a three digit NUMBER");

n=sc.nextInt();

temp=n;

while(n!=0)

{



Discussion

No Comment Found