This is the Java script for the <Bullish Car Number Generator>
The number to be bullish, must ensure number running upwards
E.G :-
- 2358
- 1578
- 5778
- 2578
- 5788
Click the bawah link
https://www.w3schools.com/java/tryjava.asp?filename=demo_helloworld
Copy the below Java Script
class Number{
public static void main(String[] args) {
int a,b,c,d,sum,total = 0;
for (a = 1; a < 10; a++) {
for (b = 1; b < 10; b++) {
for (c = 1; c < 10; c++) {
for (d = 1; d < 10; d++) {
sum = a + b + c + d;
if (sum == 8) {
total++;
System.out.printf("%d%d%d%d, ",a,b,c,d);
}
}
}
}
}
System.out.println("\n Total Number : " + total);
}
}
Jangan lupa 'Click the "RUN" button
Output is available in the right mukasurat (as usual)
If CTRL+A then right click, paste special, values, transpose and ok button
After/Lepas the number already is pilih,(bukan pele) , goto
https://www.jpj.gov.my/web/main-site/semakan-nombor-pendaftaran-terkini





No comments:
Post a Comment