Jump to content



Photo
- - - - -

If Condition


  • Please log in to reply
2 replies to this topic

#1 Gil

Gil

    Newbie

  • Members
  • Pip
  • 15 posts

Posted 01 July 2011 - 02:01 PM

Hi

I have this code working but i want to use a If condition and i'm getting error..


[codebox]"Calculo coefieciente variacao"
"Insira o desvio padrao"?ºP
"Insira media de Xi"?ºX
"O valor coeficiiente de variacao e :"
(P¹X)©100
"Anote valor dado"
"Insira valor dado"?ºV
If V>"10"
Then "dispersao forte"
Else "dispersao normal"

IfEnd
Stop[/codebox]


any help??

Thnaks

#2 JosJuice

JosJuice

    Casio Addict

  • Members
  • PipPipPip
  • 75 posts
  • Gender:Not Telling
  • Location:Sweden

  • Calculators:
    Casio Prizm fx-CG10
    TI-84 Plus Silver Edition

Posted 02 July 2011 - 07:32 AM

Instead of this:
If V>"10"
Then "dispersao forte"
Else "dispersao normal"

IfEnd
Try this:
If V>10
Then
"dispersao forte"
Else
"dispersao normal"
IfEnd
I'm more used to TI-BASIC than Casio-BASIC, so this might not be correct, but it's worth trying.

#3 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 02 July 2011 - 02:59 PM

V>10 is correct.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users