Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS

More dificult for us, more easy for you
It is currently Wed May 15, 2024 7:40 pm

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 
Author Message
 Post subject: What is wrong with my TI Basic code?
PostPosted: Thu Mar 25, 2021 3:44 pm 
Offline
User avatar

Joined: Fri Oct 16, 2009 7:47 pm
Posts: 157
Im trying to make a program for doing the Pythagorean theorem for my Ti Nspire. Yes I already know that it has something for this I just want to try making something so I can be better at my coding. It says there is a syntax error, and I was wondering if anyone could help me
here is the code:
Define pythagorean()=
Prgm
:local a,b,c,question
:request "do you know c?",question
:if question:=y Then
: request "what is it?",c
: request "length of leg you know?",a
: Disp "unknown leg=",(a+c)
: Disp "other leg=",a
: Disp "hypotenuse=",c
:else
: request "leg a?",a
: request "leg b?",b
: Disp "leg 1=",a
: disp "leg 2=",b
: disp "hypotenuse",(a^(2)+b^(2))
:endif
:EndPrgm



Top
 Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: uceiioy and 10 guests


 
Search for:
 
Jump to:  

cron
Click me:
Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009 phpBB Group
Chronicles phpBB3 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage

This site have 4 type of tecnology in order to convert text to speech. By default you use the vozme tecnology. In order to know the other you need to sign for.


- Privacy Policy -