This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#some simple math | |
A = float(input('enter A number: ')) | |
B = float(input('enter B number: ')) | |
#addition | |
#print( A + B) | |
#substraction | |
#print( A - B) | |
#divide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A = float(input('enter a number ')) | |
if (A % 2) == 0: | |
print('number is even') | |
else: | |
print('number is odd') |
NewerOlder