Skip to content

Instantly share code, notes, and snippets.

View masif088's full-sized avatar

masif088 masif088

  • Jember
View GitHub Profile
@masif088
masif088 / gist:4505089434aa1f788e1c187be2b750b2
Created November 9, 2020 10:53 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
def faktorisasiprima(i):
x=int(input())
factorlist=""
count=0
loop=2
looper=True
while looper:
if x%loop==0:
x/=loop
count+=1
def arit(n):
jumlah=0
for i in range (1,n+1):
jumlah+=i
return jumlah
case=int(input())
for i in range(1,case+1):
print("case #%i : %i"%((i),arit(int(input()))))