PrintN()

Just starting out? Need help? Post your questions and find answers here.
samxxx
User
User
Posts: 10
Joined: Sun Oct 09, 2022 5:17 pm

PrintN()

Post by samxxx »

;Can you correct this line for me?
;PrintN("My house" str(aNumber)



;-------------------------Number-Age-Name---------------------------

;EnableGraphicalConsole(#True)
;EnableExplicit

Global nNname.s
Define aAge
Define aNumber

OpenConsole()

;-----------------------------------
PrintN (" Enter your house number!")
aNumber = Val(Input())
;PrintN("My house:" Str(aNumber)
;----------------------------------

;----------------------------------
PrintN (" Enter your age!")
aAge = Val(Input())
PrintN( "")
;----------------------------------
;----------------------------------
PrintN (" Enter your name!")
nNname.s = Input()
PrintN(" My Name is: " + nNname)
;----------------------------------






Print(" I am finish! - Press Enter")
Input()
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PrintN()

Post by StarBootics »

Hello,

The fully working code :

Code: Select all

;-------------------------Number-Age-Name---------------------------

;EnableGraphicalConsole(#True)
;EnableExplicit

Global nNname.s
Define aAge
Define aNumber

OpenConsole()

;-----------------------------------
PrintN (" Enter your house number!")
aNumber = Val(Input())
PrintN("My house:" + Str(aNumber))

;----------------------------------

;----------------------------------
PrintN (" Enter your age!")
aAge = Val(Input())
PrintN( "")
;----------------------------------
;----------------------------------
PrintN (" Enter your name!")
nNname.s = Input()
PrintN(" My Name is: " + nNname)
;----------------------------------

Print(" I am finish! - Press Enter")
Input()
By the way please put your code snippets inside a code display.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
Caronte3D
Addict
Addict
Posts: 1366
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: PrintN()

Post by Caronte3D »

A new user, 5 posts with 5 questions answered but no response from the user, not even to thank... seems strange to me. :|
Oso
Enthusiast
Enthusiast
Posts: 595
Joined: Wed Jul 20, 2022 10:09 am

Re: PrintN()

Post by Oso »

Caronte3D wrote: Sat Oct 15, 2022 9:39 am A new user, 5 posts with 5 questions answered but no response from the user, not even to thank... seems strange to me. :|
You're right, I agree, it's helpful to receive some feedback - it's what makes the forum work. I had the same feeling about the recent "Sendmail does not work" post. It would have benefited the forum to know the outcome.
Post Reply