Posts by Marcelo Carvalho • 13 points
2 posts
-
-4
votes3
answers66
viewsQ: Can someone explain to me what this program does?
public class Break { public static void main(String[] args) { long i = System.currentTimeMillis(); for(int count=1 ; count <=1000000 ; count++){ if((count % 17…
javaasked Marcelo Carvalho 13 -
0
votes2
answers61
viewsQ: How could I implement this code so that if I type "a" as 0 the program stops immediately and the message "END" appears?
def conta(x,y,z): return (a**b)+c a = int(input('Infome a: ')) if a == 0: print('FIM') b = int(input('Infome b: ')) c = int(input('Infome c: ')) result =…
pythonasked Marcelo Carvalho 13