0

Every time i try to add or to subtract or anything it says no output

25th Dec 2016, 8:28 AM
omar mahmoud
omar mahmoud - avatar
6 Respostas
+ 1
Then please try writing print (2+2) and then hit run. You see when you write 2+2 and hit run then the operation takes place but there is no output because the code never said to output the answer. So, using the print method, you can tell the compiler to add 2 and 2 and then print out the answer.
25th Dec 2016, 3:46 PM
Tanvir Ahmed
Tanvir Ahmed - avatar
0
Please Omar, give us an example.
25th Dec 2016, 8:38 AM
Julius Nji
Julius Nji - avatar
0
i write 2+2 or 4/2 then hit run and it says no output
25th Dec 2016, 8:47 AM
omar mahmoud
omar mahmoud - avatar
0
I agree a proper example would be good. But did you write print (2+2)? Make sure you did that otherwise there won't be a output while using the compiler.
25th Dec 2016, 9:11 AM
Tanvir Ahmed
Tanvir Ahmed - avatar
0
no i didnt write print
25th Dec 2016, 12:46 PM
omar mahmoud
omar mahmoud - avatar
0
it worked thank you so much
25th Dec 2016, 3:47 PM
omar mahmoud
omar mahmoud - avatar