RosettaCodeData/Task/Kernighans-large-earthquake-problem/PureBasic/kernighans-large-earthquake-problem.basic
2023-07-01 13:44:08 -04:00

11 lines
282 B
Text

If OpenConsole() And ReadFile(0,"data.txt")
PrintN("Those earthquakes with a magnitude > 6.0 are:")
While Not Eof(0)
buf$=Trim(ReadString(0))
If ValF((StringField(buf$,CountString(buf$," ")+1," ")))>6.0
PrintN(buf$)
EndIf
Wend
CloseFile(0)
Input()
EndIf