Using Linotte was surprisingly easy, it has a very C-like syntax, other than using a lot of French words. This was a pretty fun language to use, and I may try to use other similar languages in the future. The only real difficulty I had with Linotte is commented below - its division operator seemed to not work :( .
I wrote and ran my Linotte code in an IDE that came with the language (which was useful mostly because of code examples to copy accents from), so I don't have precise timing information, but the below code runs in a pretty short amount of time on my machine.
/** Je parle le français juste un peu*/ globale i est un nombre j est un nombre p est un nombre t est un nombre somme est un nombre résponse est un nombre valant 0 E56: début ~ précision 0 pour i de 1 à 99, lis pour j de 1 à 99, lis p vaut i puiss j somme vaut 0 tant que p > 0, lis t vaut p mod 10 somme vaut somme + t /* division seems impossible */ p vaut entier (p * 0.1) ferme si somme > résponse, lis résponse vaut somme ferme ferme ferme Affiche résponse
Thank you for having used Linotte and resolved a problem with!
ReplyDeleteBut I do not understand the problem with the division ? I want to fix this horrible bug....
/** Je parle le français juste un peu*/
globale
i est un nombre
j est un nombre
p est un nombre
t est un nombre
x est un nombre
somme est un nombre
résponse est un nombre valant 0
E56:
début
~ précision 0
pour i de 1 à 99 lis
pour j de 1 à 99 lis
p vaut i puiss j
somme vaut 0
tant que p > 0 lis
t vaut p mod 10
somme vaut somme + t
p vaut entier(p / 10)
ferme
si somme > résponse lis
résponse vaut somme
ferme
ferme
ferme
Affiche résponse
Thank you for your comment, I agree that it seemed like a very bad bug at time, that my program failed simply because it was doing a division!
ReplyDeleteHowever,
I just went to the Linotte website and re-downloaded the IDE, changed the * 0.1 to a / 10, and the program worked. It seems like this must have been a bug that was fixed some time in the past year. I solved this problem over a year ago (and on a different machine, with an older version of Ubuntu), but it seems to work now!
Thank you ! I did not see the date (2014) . Sorry. Anyway , I am impressed with your work on this blog! bravo!
ReplyDelete