graphsize 360,700 cls clg color green rect 0,0,graphwidth,graphheight color cyan rect (20,20,320,660) color black rect(158,80,44,550) circle 180,80,22 circle 180,600,42 color white rect(160,80,40,550) circle 180,80,20 circle 180,600,40 color black line 180,80,180,600 color red circle 180,600,30 color black for i=0 to 70 z=i*6 line 140,100+z,150,100+z line 210,100+z,220,100+z next i for i=0 to 7 z=i*60 line 100,100+z,150,100+z line 210,100+z,260,100+z next i for i=0 to 14 z=i*30 line 120,100+z,150,100+z line 210,100+z,240,100+z next i font "Arial",20,90 text 70,78,"40" text 260,78,"40" text 70,138,"30" text 260,138,"30" text 70,198,"20" text 260,198,"20" text 70,258,"10" text 260,258,"10" text 70,318," 0" text 260,318," 0" text 65,378,"-10" text 260,378,"-10" text 65,438,"-20" text 260,438,"-20" text 65,498,"-30" text 260,498,"-30" color red rect(170,520,20,80) nb = int(rand * 70) h=nb*6 rect(170,520-h,20,80+h) temp=-30+nb Print "Quelle est la température ?" input rep if rep=temp then print "C'est bien ! " else print "Erreur ! Le thermomètre indique "+temp+"°" end if