[Hindi] wap in java to check a number is sunny number or not



Hello friends, in this video we discuss how we can write a program in java to check a number is sunny number or not, the video tutorial is useful for isc board class 11 and 12 (intermediate), icse board class 9 and 10 computer applications/science students as well as java programming enthusiasts, engineering students and those who are preparing for some kind of programming interviews.

Some useful links:

icse java crash course:…

, , , , , ,

7 thoughts on “[Hindi] wap in java to check a number is sunny number or not

  1. Adam number
    (12)²=144
    (21)²=441

    Reverse of 441 is 144 hence Adam number….

    Pls check the program

    i—;
    C—
    {
    p—
    {
    B—-;
    Sopln ("Enter a no");
    int n=—–;
    int sq,sq1,rev,rev1,d,dup=n,d1;
    sq=n*n;
    while(dup!=0)
    {
    d=dup%10;
    rev=rev*10+d;
    dup=dup/10;
    sq1=rev*rev;
    }
    while(sq1!=0)
    {
    d1=sq%10;
    rev1=rev1*10+d;
    sq=sq/10;
    }
    if(rev1==sq)
    Sopln("adam no");
    else
    Sopln("Not adam no");
    }
    }

  2. WAP to accept a list of 20 integers. Sort first 10 numbers in ascending order by using selection sort and next 10 numbers in descending order by using bubble sort. Finally print the complete sorted list of numbers.

Leave a Reply

Your email address will not be published. Required fields are marked *