Skip to content

Instantly share code, notes, and snippets.

View arrbxr's full-sized avatar
🎯
Focusing

Abhishek Raj Ravi arrbxr

🎯
Focusing
  • Aryabhatta Knowledge University, Bihar
  • Patna India
  • X @arrbxr
View GitHub Profile
@arrbxr
arrbxr / reverse number.java
Created February 19, 2018 21:07
reverse number created by arrbxr - https://repl.it/@arrbxr/reverse-number
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);
}
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){
@arrbxr
arrbxr / Armstrong Number.java
Created February 21, 2018 02:41
Armstrong Number created by arrbxr - https://repl.it/@arrbxr/Armstrong-Number
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){
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;
class Main {
public static void main(String[] args) {
b obj = new b();
}
}
class a{
public a(){
System.out.println("class a");
}
class Main {
public static void main(String[] args) {
b obj = new b();
}
}
class a{
public a(){
System.out.println("class a");
}
class Main{
public static void main(String[] args){
Factorial obj = new Factorial();
obj.factorialFind(12);
}
}
class Factorial{
void factorialFind(int a){
#include "stdio.h"
int main(void) {
int a = 10;
void *ptr;
ptr = &a;
printf("%d",*((int *)ptr));
return 0;
}
class Main {
public static void main(String[] args) {
Test t = new Test();
Test t1 = new Test();
}
}
class Test{
Test(){
function laugh(num){
var j = [];
for(var i = 1; i <= num; i++){
j += "ha";
if(i == num){
j+= "!";
}
}
console.log(j);
}