Riwi Number

 


import java.util.*;

class riwi

{

    public static void main(String[]args)

    {

        Scanner sc=new Scanner(System.in);

        System.out.println("Enter a number::");

        int n=sc.nextInt();

        int ll,l,f;

        ll=n%100;

        l=ll/10;

        f=n%10;

        if(l==f)

        System.out.println("Riwi no.");

        else

        System.out.println("Not Riwi No.");

    }

}

No comments:

Post a Comment

any problem in any program comment:-

Infix postfix prefix

 import java.util.Stack; import java.util.Scanner; public class ExpressionConverter {     // Function to return precedence of operators     ...