Showing posts with the label URIShow all

n = int ( input ()) print ( "{}:{}:{}" . format ( int (n / 3600 ), int (n % 3600 / 60 ), int (n % 60 )))

notes = int ( input ()) print (notes) print ( "{} nota(s) de R$ 100,00" . format ( int (notes / 100 ))) aux = (notes % 100 ) print ( "{} nota(s) de R$ 50,00" . format ( int (aux / 50 ))) aux = (aux % 50 ) prin…

a = int ( input ()) b = int ( input ()) print ( "%0.3f" % ((a * b) / 12.0 ))

n = int ( input ()) print ( "{} minutos" . format (n * 2 ))

import math x1,y1 = list ( map ( float , input (). split ())) x2,y2 = list ( map ( float , input (). split ())) distance = math. sqrt ( pow (x2 - x1, 2 ) + pow (y2 - y1, 2 )) print ( "%0.4f" % distance)

a = int ( input ()) b = float ( input ()) total = a / b print ( "%0.3f km/l" % total)

a,b,c = list ( map ( int , input (). split ())) print ( "{} eh o maior" . format ( max (a,b,c)))

a,b,c = list ( map ( float , input (). split ())) triangle = 0.5 * a * c circle = 3.14159 * c * c trapezium = (a + b) / 2.0 * c square = b * b rectangle = a * b print ( "TRIANGULO: %.3lf" % triangle) print ( "CIRCU…

n = int ( input ()) total = ( 4 / 3.0 * 3.14159 * n * n * n) print ( "VOLUME = %0.3f" % total)

x = input (). split ( " " ) y = input (). split ( " " ) a,b,c = x d,e,f = y total = ( int (b) * float (c)) + ( int (e) * float (f)) print ( "VALOR A PAGAR: R$ %0.2f" % total)

name = input () a = float ( input ()) b = float ( input ()) total = a + (b * 15 ) / 100 print ( "TOTAL = R$ %0.2f" % total)

a = int ( input ()) b = int ( input ()) c = float ( input ()) print ( "NUMBER =" ,a) mult = b * c print ( "SALARY = U$ %0.2f" % mult)

a = int ( input ()) b = int ( input ()) c = int ( input ()) d = int ( input ()) sum = ((a * b) - (c * d)) print ( "DIFERENCA =" ,sum)

a = float ( input ()) b = float ( input ()) c = float ( input ()) average = (a * 2 + b * 3 + c * 5 ) / ( 2 + 3 + 5 ) print ( "MEDIA = %0.1f" % average)

a = float ( input ()) b = float ( input ()) average = (a * 3.5 + b * 7.5 ) / ( 3.5 + 7.5 ) print ( "MEDIA = %0.5f" % average)

a = float ( input ()) b = int ( input ()) print ( "PROD =" , int (a * b))

A = int ( input ()) B = int ( input ()) SOMA = A + B print ( "SOMA = {}" . format (SOMA))

R = float ( input ()) A = 3.14159 R = A * R * R print ( "A=%.4f" % R)

R = float ( input ()) A = 3.14159 R = A * R * R print ( "A=%.4f" % R)