This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
int num = 1234888, temp , i, reverse = 0; | |
temp = num; | |
while(num > 0){ | |
reverse = reverse*10 + num % 10; | |
num /= 10; | |
} | |
System.out.println(reverse); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
int num = 121, temp , i, reverse = 0; | |
temp = num; | |
while(num > 0){ | |
reverse = reverse*10 + num % 10; | |
num /= 10; | |
} | |
System.out.println(reverse); | |
if(temp == reverse){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
int num = 153, arm = 0, i, temp; | |
temp = num; | |
while(num != 0){ | |
i = num%10; | |
arm = arm + i*i*i; | |
num /=10; | |
} | |
if(arm == temp){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ravi(st){ | |
var one = 0; | |
var two =0; | |
var three =0; | |
var four = 0; | |
var str = st.toLowerCase().split(''); | |
for(var i = 0; i<str.length; i++){ | |
if(str[i] == 'a' || str[i] == 'd' || str[i] == 'g' ||str[i] == 'j' || str[i]== 'm' || str[i] == 'p' ||str[i]=='t' || str[i] == 'w' || str[i] == " "){ | |
one += 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
b obj = new b(); | |
} | |
} | |
class a{ | |
public a(){ | |
System.out.println("class a"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
b obj = new b(); | |
} | |
} | |
class a{ | |
public a(){ | |
System.out.println("class a"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main{ | |
public static void main(String[] args){ | |
Factorial obj = new Factorial(); | |
obj.factorialFind(12); | |
} | |
} | |
class Factorial{ | |
void factorialFind(int a){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
int main(void) { | |
int a = 10; | |
void *ptr; | |
ptr = &a; | |
printf("%d",*((int *)ptr)); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
Test t = new Test(); | |
Test t1 = new Test(); | |
} | |
} | |
class Test{ | |
Test(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function laugh(num){ | |
var j = []; | |
for(var i = 1; i <= num; i++){ | |
j += "ha"; | |
if(i == num){ | |
j+= "!"; | |
} | |
} | |
console.log(j); | |
} |