Just post whatever junky code you have here.
Can be anything
1 Like
I have a crit code somewhere
abilty = false
var crit = math.floor(math.random() * 101);
let Dam = 20; // or smth
function crit() {
If (crit <= 40) {
Dam = 30;
} else if (ability == true & crit <= 40) {
Dam = 50;
} else {
Dam = 20.
}
console.log(Dam);
}
crit()
4 Likes
public class myCity {
public static void main(String[] args) {
city x = new city();
x.setName("San Diego");
x.setLatitude(100.5);
x.setLongitude(200);
System.out.println("NameOfCity: " + x.getName());
System.out.println("Latitude of city: " + x.getLatitude());
System.out.println("Longitude of city: " + x.getLongitude());
}
}
class city {
private String name;
private double latitude;
private double longitude;
public String getName() {
return this.name;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLatitude() {
return this.latitude;
}
public void setName(String name) {
this.name = name;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public double getLongitude() {
return this.longitude;
}
}
1 Like
public class BMI {
public static void main(String[] args) {
int kg = 300;
int m = 1;
if (kg/(m*m) < 18.5) {
System.out.print("UnderweightError");
}
else if (kg/(m*m) >=18.5 && kg/(m*m) < 25) {
System.out.print("Regular");
}
else if (kg/(m*m) >= 25 && kg/(m*m) < 28) {
System.out.print("Overweight");
}
else if (kg/(m*m) >= 28 && kg/(m*m) <32 ) {
System.out.print("FAT(FoolishActToday)");
}
else
System.out.print("WorldRecordFatness");
}
}
1 Like
public class printTimeTable {
public static void main(String[] args) {
for(int i=1; i<10; i++) {
for(int j=1; j<10; j++) {
System.out.print(i+"x"+ j + "=" + i*j+" ");
}
System.out.println();
}
}
}
import java.lang.Math;
public class solveQuadraticEqn {
public static void main(String[] args) {
int a = 2;
int b = -5;
int c = 2;
if (b*b-4*a*c>=0) {
System.out.println((-b+java.lang.Math.sqrt(b*b-4*a*c))/(2*a));
System.out.println((-b-java.lang.Math.sqrt(b*b-4*a*c))/(2*a));
}
if (b*b-4*a*c<0) {
System.out.println("No answer");
}
}
}
run these on a java complier, these are some codes tht i made. just started learning java
2 Likes
well
I have no clue how to read code so…
Hello World! program in python
range = ["l", print, 1, "W", 3, "e!", staticmethod]
ඞඞඞ = range[(8 % --7)]
ඞඞඞඞ = [((range)[ 20 % 7])][0]
ඞඞඞඞඞ = [ ඞඞඞ, (((ඞඞඞඞ ).__class__))][1]
ඞඞ = (([list.index]))[0]
def ඞ( ඞa, ඞb): ඞa.__getattribute__("pop")(ඞb)
ඞ(range, ඞඞ(range, ඞඞඞඞ))
ඞ(range, (range, (0x23 ** 0x00))[(0x23 ** 0x00)])
range.extend( (["ord", "H " ]))
if ඞඞඞඞඞඞ := "":
print("dsada")
ඞඞn = ""
class console:
@ඞඞඞඞ
def log(*sys):
ඞඞඞ(*sys)
class ඞError(Exception): pass
ඞCඞඞ = --(-(0x00 ** 0x00))
for print in (range):
ඞCඞඞ += 0x01
ඞඞc = ""
class input:
ඞ3=not(not(not(True)))
while not(ඞ3):
ඞ3=True
try:
def go(this):
if (isinstance(print, (int))):
return
return [console.log.__class__]
return print
except console.ඞError:
print("ඞ")
if (ඞඞc:=input().go()) == 0x1212:
console.log("bruh")
if ඞCඞඞ==0:
ඞඞඞඞඞඞ+=ඞඞc * 0x02
else:
if ඞCඞඞ==2:
ඞඞn+=ඞඞc
if ඞCඞඞ==4:
ඞඞඞඞඞඞ = ඞඞc + ඞඞඞඞඞඞ
if ඞCඞඞ==5:
ඞඞn+=ඞඞc[:-1] + range[0] + ඞඞc[-1] + ඞඞඞඞඞඞ[1]
ඞඞඞඞඞඞ = ඞඞඞඞඞඞ[:1] + ඞඞඞඞඞඞ[2:] + ඞඞc[0]
if ඞCඞඞ==6:
ඞඞඞඞඞඞ = ඞඞc[0] + ඞඞඞඞඞඞ + ඞඞc[1] + ඞඞn
console.log(ඞඞඞඞඞඞ)
2 Likes
3 Likes
This topic was automatically closed after 7 days. New replies are no longer allowed.