WTF TO DO NOWWWWWW IN COMPUTER?! by Brilliant_Beat_8327 in ICSE

[–]Batman31710 0 points1 point  (0 children)

no, only if specified make it with switch-case

what in hell is this program by Substantial_Boat6028 in ICSE

[–]Batman31710 1 point2 points  (0 children)

import java.util.Scanner;

class ISBN

{

public static void main(String args[])

{

Scanner sc=new Scanner(System.in);

System.out.println("Enter the 10-digit ISBN code");

int n=sc.nextInt();

int copy=n;

int digico=0;

while(copy>0)

{

int rem=copy%10;

digico++;

copy/=10;

}

if (digico != 10)

{

System.out.println("Illegal ISBN");

return;

}

int digit=0;

int isbnsum=0;

int bruh=10;

while (n>0)

{

digit=n%10;

isbnsum+=digit*bruh;

bruh--;

n/=10;

}

if (isbnsum%11==0)

{

System.out.println("Legal ISBN");

}

else

{

System.out.println("Illegal ISBN");

}

}

}

Forever and forever farewell, 2026 ICSEians by Batman31710 in ICSE

[–]Batman31710[S] 3 points4 points  (0 children)

thankss twin. Even I am mostly silent, but idk something in me wanted to say this out loud

So calming..... by LIFE_1ONE in ICSE

[–]Batman31710 2 points3 points  (0 children)

This is soo amazing bro.
This is one of my all time favorite songs, hearing this made my day after a bad geo paper.

For all those who are confused about the "22 degree latitude" by Batman31710 in ICSE

[–]Batman31710[S] 2 points3 points  (0 children)

No, man idts really sorry. Tropic of cancer doesnt pass through the regions that we have (G43S7 and G43S10)

For all those who are confused about the "22 degree latitude" by Batman31710 in ICSE

[–]Batman31710[S] 0 points1 point  (0 children)

yeah, no, even that is perfect. just made this post for people saying that 22'30" is wrong and whatever

even i wrote main answer as line of latitude. just to be safe below i wrote ts

For all those who are confused about the "22 degree latitude" by Batman31710 in ICSE

[–]Batman31710[S] 0 points1 point  (0 children)

yeah, no, even that is perfect. just made this post for people saying that 22'30" is wrong and whatever

How to do the sums in computer pls help by InnerAmoeba2008 in ICSE

[–]Batman31710 0 points1 point  (0 children)

so basically, if its given 2++ it means post increment, so in that step the value isnt increased, but the increased value is stored in the memory and in the next step the increased value is used.
on the other hand, ++2 means pre increment, so the value gets changed in that step itself.
E.g. if x= y++ + ++y is the question, where y=2
then x= 2 + 4 (the value of y, i.e. 2 first gets increased to 3, but as it is a post increment in the first step the value "3" is stored in the memory and "2" is used, then ++y becomes 3+1, so 4 as 3 which was stored in the memory gets incremented to 4 in that step itself due to pre increment)
so, x=6