ich bin nicht der beste in Mathe, also dachte ich mir, es wäre schön, wenn ich ein Programm hätte, mit dem ich meine Ergebnisse überprüfen kann!
Ich hab mir in Wirtschaft und Recht ein kleines script gebastelt, das sich aber nicht ausführen lassen will

Code: Alles auswählen
import os
import sys
import math
print 'x = Zylinder; y = Kegel; z = Kugel'
raw_input()
if raw_input == x:
print """
Zylinder
"""
input('Höhe') = a
input('Radius') = b
print "%d * %d = %d" % (b**b, a, c)
print c
print 'Das Ergebnis wird ohne pi angegeben!'
elif raw_input == y:
print """
Kegel
"""
input('Höhe') = a
input('Radius') = b
print '1/3 * %d * %d = %d' % (b**b, a, c)
print c
print 'Das Ergebnis wird ohne pi angegeben!'
elif raw_input == z:
print """
Kugel
"""
input('Radius') = b
print '4/3 * %d = %d' % (b**b, c)
print c
print 'Das Ergebnis wird ohne pi angegeben!'
else:
raise 'Ein Fehler ist aufgetreten.'
exit()
Danke im voraus,
Craven