+ 1

Get a output???

When I click enter in cmd, it get closed instead of getting output.....

11th Sep 2018, 7:12 AM
ஹரி ராமநாதன்
ஹரி ராமநாதன் - avatar
4 Respuestas
+ 4
import os #os.system("pause") you need to use cmd commands to see your result for example import os x = 10 y = 4 print(int(x) + int(y)) #os.system("pause") in this code after the result you get the message like this "pleas press any key to continue" so your program doesn't close immediately and also you can use any cmd commands in python by importing os #os.system(cmd comands)
11th Sep 2018, 8:05 AM
estifanos
estifanos - avatar
+ 2
just add input() in en of your code and it will stay until you press enter
11th Sep 2018, 9:05 AM
Sarvesh Yadav
Sarvesh Yadav - avatar
0
thnku for all
11th Sep 2018, 10:35 AM
ஹரி ராமநாதன்
ஹரி ராமநாதன் - avatar