2WAP

> Basic Battle Game!

7 replies 157 views

Have something to say?

Join free to reply to ROCKY13 — it takes 30 seconds.

#2
Code: na m e s pa c e A u t oBa t t l e { pub l i c c l a s s S t a r t { s t a t i c v o i d M a i n ( ) { F i g h t i ng . ba t t l e m e t hod ( ) ; } } } a nd a no t he r c l a s s na m e s pa c e A u t oBa t t l e { c l a s s F i g h t i ng { pub l i c s t a t i c v o i d ba t t l e m e t hod ( s t r i ng he r o , s t r i n { C on s o l e .W r i t e L i ne ( " W ha t i s t he he r o ' s na m e " ) ; he r o = C on s o l e . Re a d L i ne ( ) ; C on s o l e .W r i t e L i ne ( " W ha t i s t he M on s t e r s na m e ? " M on s t e r = C on s o l e . Re a d L i ne ( ) ; C on s o l e .W r i t e ( " { 0 } i s f a c i ng a { 1 } " ,
Share WhatsApp Facebook X Telegram SMS

Join the conversation

7 replies so far. Join free to add yours — it takes 30 seconds.

Enjoying 2WapWorld?

Join free to reply, chat and make friends — it takes 30 seconds.

Join free Not now