tarunsinghofficial / HacktoberFest

:octocat: Add your Programs or tech content to help other contributors ✅
383 stars 2.3k forks source link

Pallindrome number using recursion java #2752

Open NiharikaPanda09 opened 8 months ago

NiharikaPanda09 commented 8 months ago

I want to contribute pallindrome number using recursion java please @tarunsinghofficial assign it to me

Shreya1chaturvedi commented 8 months ago

hii can i contribute to ur problem

NiharikaPanda09 commented 8 months ago

i raised this issue no one assigned me..

NiharikaPanda09 commented 8 months ago

please assign this issue to me please @tarunsinghofficial

ABHINAV0307 commented 8 months ago

assign me CODE: import java.io.*;

class GFG {

static int rev(int n, int temp) {

if (n == 0)
    return temp;

temp = (temp * 10) + (n % 10);

return rev(n / 10, temp);

}

public static void main (String[] args) { int n = 121; int temp = rev(n, 0);

if (temp == n)
    System.out.println("yes");
else
    System.out.println("no" );

} }

Shreya1chaturvedi commented 8 months ago

Hiii could u help me with hackatober.. I don't know how to contribute

On Sat, 21 Oct, 2023, 11:07 pm Abhinav Tripathi, @.***> wrote:

assign me CODE: import java.io.*;

class GFG {

static int rev(int n, int temp) {

if (n == 0) return temp;

temp = (temp * 10) + (n % 10);

return rev(n / 10, temp);

}

public static void main (String[] args) { int n = 121; int temp = rev(n, 0);

if (temp == n) System.out.println("yes"); else System.out.println("no" );

} }

— Reply to this email directly, view it on GitHub https://github.com/tarunsinghofficial/HacktoberFest/issues/2752#issuecomment-1773872872, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDKNAVDBX3LD6N4NI4GQXITYAQB6BAVCNFSM6AAAAAA6A235P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTHA3TEOBXGI . You are receiving this because you commented.Message ID: @.***>

HarshitaShrivas66 commented 8 months ago

Hello can you plz accept and merge my pull request

janhavibagret commented 8 months ago

Can you please assign me this issue? I would like to work on it.