Ladies and Gentelman, Today we are going to learn how to create a multiplication (or Addition) table using Java. First of all, copy the code below on your IntelliJ or paste on ChatGPT, to understand how it works. Usually if you paste a code on the AI, it can simulate if you order in your prompt. Ask it to simulate and run step by step letting you choose everything. That’s how I do to test a code, or game on Chat GPT. The only reason the code does 1x1, 1x2, up to 1x10 is because the loop that determines the number to be multiplied is inside the first "for loop", which counts up to 10 for the first number to be used in the multiplication, conditioning what is printed to the multiplication (i * a). ## To create the Addition table: If I swap (i * a) with (i + a) and just change the X symbol to + in the printed output, I’ll get 1+1=2, and so on. It’s the same logic, but with a different symbol instead of multiplication. Let me know in the comments if you have any question! This was another great post by: # ***@xmauron3*** ## ***”The Future is Awesome”*** ________________ PORTUGUESE 🇵🇹 PORTUGUÊS 🇧🇷 # Hoje vamos aprender como criar uma tabela de multiplicação (ou adição) usando Java. O único motivo pelo qual o código faz 1x1, 1x2, até 1x10, é porque o loop que determina o número a ser multiplicado está dentro do primeiro loop for, que conta até 10 para o primeiro número a ser usado na multiplicação, condicionando o que é impresso à multiplicação (i * a). Se eu trocar o (i * a) por (i + a) e apenas mudar o símbolo de X para + no que for impresso, eu terei 1+1=2, e assim por diante. É a mesma lógica, mas com outro símbolo no lugar da multiplicação.  - Vejam isso no exemplo abaixo. Qualquer problema estou a disposição ! Esse foi outro ótimo post por: # ***@xmauron3*** ## ***O Futuro é Incrível”*** <code> import java.sql.SQLOutput; public class Main { public static void main(String[] args) { // multiplication table for (int i = 1; i <= 10; i++) { System.out.println("--------------"); for (int a = 1; a <= 10; a++) { System.out.println(i + "+" + a + "=" + (i + a)); } } } } </code>
author | xmauron3 |
---|---|
permlink | multiplication-or-addition-table-using |
category | coding |
json_metadata | "{"app":"ecency/3.2.0-vision","tags":["coding","java","pt","br","learning","ecency"],"format":"markdown+html","description":"Ladies and Gentelman, Today we are going to learn how to create a multiplication (or Addition) table using Java. import java.sql.SQLOutput; public class Main { public static void main(String[] args) {","image":["https://images.ecency.com/DQmc9UYj3a7umz8zYWzTqLKfjBvQ84inDbaRGarejAsf9BM/83caa718_d291_4e96_8cce_b9e5c53e994e.jpg"],"image_ratios":[1.0951585976627713],"content_type":"general","type":"post"}" |
created | 2024-09-03 16:08:18 |
last_update | 2024-09-03 16:24:03 |
depth | 0 |
children | 7 |
last_payout | 2024-09-10 16:08:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.446 HBD |
curator_payout_value | 0.444 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,317 |
author_reputation | 20,850,952,654,220 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,806,398 |
net_rshares | 3,599,189,921,497 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
good-karma | 0 | 45,904,084,721 | 4% | ||
themonetaryfew | 0 | 229,849,366,272 | 100% | ||
esteemapp | 0 | 10,314,607,412 | 4% | ||
wagnertamanaha | 0 | 42,350,216,723 | 50% | ||
bloghound | 0 | 704,885,082 | 0.8% | ||
drwom | 0 | 831,976,859 | 2% | ||
droida | 0 | 147,824,375,569 | 100% | ||
esteem.app | 0 | 1,344,107,568 | 4% | ||
auleo | 0 | 505,512,946 | 0.8% | ||
sneakyninja | 0 | 1,402,157,211 | 2.24% | ||
criptomaster | 0 | 5,416,566,287 | 100% | ||
cherryng | 0 | 507,452,308 | 0.8% | ||
catharsis | 0 | 1,925,499,439 | 2% | ||
markitoelias | 0 | 1,956,541,179 | 100% | ||
sbi6 | 0 | 185,616,527,041 | 33.5% | ||
perfilbrasil | 0 | 50,923,582,887 | 75% | ||
trincowski-pt | 0 | 62,253,660,335 | 100% | ||
freebot | 0 | 228,098,153 | 100% | ||
lunapark | 0 | 609,422,941 | 100% | ||
cresus | 0 | 666,980,120 | 100% | ||
hadaly | 0 | 233,070,547 | 100% | ||
goldfoot | 0 | 696,476,522 | 100% | ||
dotmatrix | 0 | 170,683,600 | 100% | ||
otomo | 0 | 148,487,334 | 100% | ||
botito | 0 | 1,511,180,143 | 100% | ||
weebo | 0 | 148,558,516 | 100% | ||
freysa | 0 | 1,763,741,913 | 100% | ||
tobor | 0 | 413,071,777 | 100% | ||
buffybot | 0 | 148,555,733 | 100% | ||
psybot | 0 | 1,424,780,311 | 100% | ||
elector | 0 | 4,374,420,561 | 100% | ||
chatbot | 0 | 148,811,897 | 100% | ||
chomps | 0 | 148,170,045 | 100% | ||
quicktrades | 0 | 9,941,391,421 | 100% | ||
misery | 0 | 222,365,956 | 100% | ||
sbi-tokens | 0 | 2,556,991,037 | 4.48% | ||
andylein | 0 | 98,907,994,715 | 80% | ||
kgsupport | 0 | 1,822,374,028 | 36% | ||
ecency | 0 | 1,617,980,512,298 | 4% | ||
cybercity | 0 | 1,040,382,390,412 | 100% | ||
adventuresgrpg | 0 | 0 | 100% | ||
honeybot | 0 | 1,376,277,663 | 100% | ||
ecency.stats | 0 | 1,493,366,752 | 4% | ||
hivebr | 0 | 1,373,977,993 | 100% | ||
t0xicgh0st | 0 | 462,827,526 | 100% | ||
eolianpariah2 | 0 | 5,324,761,837 | 2% | ||
arthursiq5 | 0 | 532,847,914 | 37.5% | ||
dtake | 0 | 5,216,395,729 | 100% | ||
jkatrina | 0 | 4,017,389,065 | 37.5% | ||
riyat | 0 | 5,112,427,199 | 25% |
Congratulations @xmauron3! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s) <table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@xmauron3/upvotes.png?202409051922"></td><td>You distributed more than 99000 upvotes.<br>Your next target is to reach 100000 upvotes.</td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@xmauron3) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Check out our last posts:** <table><tr><td><a href="/hive-106258/@hivebuzz/hivefest-2024-badge"><img src="https://images.hive.blog/64x128/https://files.peakd.com/file/peakd-hive/hivebuzz/48VEtcvs7eskeM4UMnbMF7M6zWzjp7R3P5s1cmYTXV6ZFuVmrWL16CfUuVt1JcmRox.png"></a></td><td><a href="/hive-106258/@hivebuzz/hivefest-2024-badge">The countdown to HiveFest⁹ is one week away - Join us and get your exclusive badge!</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pum-202408-delegations"><img src="https://images.hive.blog/64x128/https://i.imgur.com/fg8QnBc.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202408-delegations">Our Hive Power Delegations to the August PUM Winners</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pud-202409-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/zHjYI1k.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202409-feedback">Feedback from the September Hive Power Up Day</a></td></tr></table>
author | hivebuzz |
---|---|
permlink | notify-1725564413 |
category | coding |
json_metadata | {"image":["https://hivebuzz.me/notify.t6.png"]} |
created | 2024-09-05 19:26:54 |
last_update | 2024-09-05 19:26:54 |
depth | 1 |
children | 2 |
last_payout | 2024-09-12 19:26:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,603 |
author_reputation | 370,796,838,319,151 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,852,899 |
net_rshares | 3,988,709,091 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xmauron3 | 0 | 3,988,709,091 | 100% |
Nice!
author | xmauron3 |
---|---|
permlink | re-hivebuzz-202499t17262277z |
category | coding |
json_metadata | {"content_type":"general","type":"comment","tags":["ecency"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-09 20:26:21 |
last_update | 2024-09-09 20:26:21 |
depth | 2 |
children | 1 |
last_payout | 2024-09-16 20:26:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.158 HBD |
curator_payout_value | 0.159 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5 |
author_reputation | 20,850,952,654,220 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,949,988 |
net_rshares | 1,174,249,927,710 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cybercity | 0 | 1,174,249,927,710 | 100% |
Getting closer to the 100k upvotes. Awesome work @xmauron3<div><a href="https://engage.hivechain.app"></a></div>
author | hivebuzz |
---|---|
permlink | re-1725942567298 |
category | coding |
json_metadata | {"app":"engage"} |
created | 2024-09-10 04:29:27 |
last_update | 2024-09-10 04:29:27 |
depth | 3 |
children | 0 |
last_payout | 2024-09-17 04:29:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 148 |
author_reputation | 370,796,838,319,151 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,955,416 |
net_rshares | 0 |
Obrigado por promover a Língua Portuguesa em suas postagens. Vamos seguir fortalecendo a comunidade lusófona dentro da Hive.<div class='text-right'><sup>Metade das recompensas dessa resposta serão destinadas ao autor do post.</sup></div><hr/><h4><center><a href='https://vote.hive.uno/@perfilbrasil'>Vote no @perfilbrasil para Testemunha Hive.</a></center></h4>
author | perfilbrasil | ||||||
---|---|---|---|---|---|---|---|
permlink | re-multiplication-or-addition-table-using | ||||||
category | coding | ||||||
json_metadata | "{"tags": ["pt"], "description": "Obrigado por postar"}" | ||||||
created | 2024-09-03 16:15:06 | ||||||
last_update | 2024-09-03 16:15:06 | ||||||
depth | 1 | ||||||
children | 1 | ||||||
last_payout | 2024-09-10 16:15:06 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 362 | ||||||
author_reputation | 13,091,361,116,375 | ||||||
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 10.000 HBD | ||||||
percent_hbd | 0 | ||||||
post_id | 136,806,517 | ||||||
net_rshares | 4,070,939,977 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xmauron3 | 0 | 4,070,939,977 | 100% |
Valeu!
author | xmauron3 |
---|---|
permlink | re-perfilbrasil-202499t172610550z |
category | coding |
json_metadata | {"content_type":"general","type":"comment","tags":["pt"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-09 20:26:12 |
last_update | 2024-09-09 20:26:12 |
depth | 2 |
children | 0 |
last_payout | 2024-09-16 20:26:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.162 HBD |
curator_payout_value | 0.162 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6 |
author_reputation | 20,850,952,654,220 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,949,984 |
net_rshares | 1,198,195,430,683 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cybercity | 0 | 1,198,195,430,683 | 100% |
## Sending love and curation Ecency vote. keep giving the best Please vote for Ecency proposal👇 https://ecency.com/proposals?filter=team 
author | riyat |
---|---|
permlink | re-xmauron3-202493t231118682z |
category | coding |
json_metadata | {"tags":["coding","java","pt","br","learning","ecency"],"app":"ecency/3.2.0-vision","format":"markdown+html"} |
created | 2024-09-03 16:11:18 |
last_update | 2024-09-03 16:11:18 |
depth | 1 |
children | 1 |
last_payout | 2024-09-10 16:11:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.127 HBD |
curator_payout_value | 0.127 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 246 |
author_reputation | 327,361,731,215,206 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,806,445 |
net_rshares | 1,029,274,797,260 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xmauron3 | 0 | 3,908,169,802 | 100% | ||
cybercity | 0 | 1,025,366,627,458 | 100% |
Thanks!
author | xmauron3 |
---|---|
permlink | re-riyat-202499t172636277z |
category | coding |
json_metadata | {"content_type":"general","type":"comment","tags":["coding","java","pt","br","learning","ecency"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-09 20:26:36 |
last_update | 2024-09-09 20:26:36 |
depth | 2 |
children | 0 |
last_payout | 2024-09-16 20:26:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.156 HBD |
curator_payout_value | 0.156 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 7 |
author_reputation | 20,850,952,654,220 |
root_title | "Multiplication (or Addition) Table Using a "For Loop" [ENG/PT]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 136,949,992 |
net_rshares | 1,150,793,037,618 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cybercity | 0 | 1,150,793,037,618 | 100% |