Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.
Les derniers programmes
Dernier jeux :
Snake par Simnon
SameGame par J2l
LuckFX par Theo1df

Derniers utilitaires :
FxSDK GUI par Jupiko
FxSDK installer par Jupiko
MathTools par Thecalcguy

Derniers cours :
EquaChim par J2l
Periodic Table (English) par Reuben628
DiffInter par J2l

Défi
Retour liste des défis
Output challenge 2
Difficulté : Moyen
Défi ajouté par : Calcloverhk le 12-02-2024 18:43
CalcloverhkHors ligneMembrePoints: 435 Défis: 10 Message
Question ou texte du défi :
This question is similar to the original challenge. If you get the correct answer from that challenge, this one should be easier for you.

Here is a sample program:
For 1→A To 7
Locate A+1,A,A
Next


This should generate output like below:
 1
  2
   3
    4
     5
      6
       7


Now, append 4 lines of simplest code so that the final display becomes:
1
2
3
4
5
6
7


Note that you can only use Locate once. ":", "⇒", "◢" and all clear commands are prohibited

Votre réponse au défi :

Þ ã Ý à á â


Commentaires :
Pages: Précédente | 1, 2

Tuper4Hors ligneMembrePoints: 1026 Défis: 26 Message
Posté le 12-02-2024 à 19:54 | #
I don't see it anywhere but alright
CalcloverhkHors ligneMembrePoints: 435 Défis: 10 Message
Posté le 12-02-2024 à 19:55 | #
Well actually, the word "append" implies this constraint

What you have done is to "prepend" 4 lines of code
Tuper4Hors ligneMembrePoints: 1026 Défis: 26 Message
Posté le 12-02-2024 à 19:58 | #
Yeah I agree

Any hints?
LephenixnoirHors ligneAdministrateurPoints: 25732 Défis: 174 Message
Posté le 12-02-2024 à 19:59 | #
You need to use your Locate to re-print the numbers so you have to find another way to clear the initial display.
Tuper4Hors ligneMembrePoints: 1026 Défis: 26 Message
Posté le 12-02-2024 à 20:00 | #
Oook, thank you! I was trying that way but I haven't found anything

Pages: Précédente | 1, 2

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2026 | Il y a 134 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd