I'm doing a program where students are asked to key in any value, lets a, and the program will automatically gives the answer of LOG10(A).

Then, student are asked to key in another value.Lets B

The programme will give the answer of LOG10(A)*B.

Below is the program that i write:

#program python kedua

print"Least Square Method"

#users are asked to key in the value

integer1=raw_input("insert the first value\n")

integer1= int(integer1)

c=raw_input (" enter a value for c:\n")

c=int(c)

while c>=1:

import math

math.log(c)

d=log10(c)("print %log10(c)==%d")%(c,d)

if c <=0:

print"error"

total=2*integer1*d

print"total"

The program cannot be run?

What is the right way to do it?

Thank You.