I am currently in a C++ class. We have using Python and my assignment is to do a lab that I have done in python 2.5 in C++, although I have no idea where to begin besides opening Dev C++ or Bloodshed. Could anyone please tell me how I begin the project and use it? This is the lab assignment and what I have for Python. Thanks..
'This lab is simply to make sure you understand the various arithmetic operations. Print the result of doing the following operations: 2.345+1.23, 2.345*1.23, 2.345 – 1.23, 2.345/1.23, 11/4, 11%4. Do them in the order specified, and label your results when you print them.'
Python :
print "2.345 + 1.23 =", 2.345+1.23
print "2.345 * 1.23 =", 2.345*1.23
print "2.345 - 1.23 =", 2.345-1.23
print "2.345 / 1.23 =", 2.345/1.23
print "11 / 4 =", 11/4
print "11 % 4 =", 11%4