Python en línea a C Converter
console.log("Hello World!");
Good Grasshopper
console.log("Hello World!");
for p in par:
for aa in range(9,-1,-1):
if (2 * r * 10 + aa) * aa <= sub:
idk_man = sub - ((2*r*10+aa)*aa)
if not len(par)-1 == p:
sub = idk_man*100 + int(pairs[p+1])
r = r*10 + aa
break
a = int(input())
b = int(input())
for i in range(a, b + 1):
if i % 4 == 0:
continue
print('Loading...{0}%'.format(i))
#taking marks as input
marks=int(input("Enter the marks scored in examination: "))
#if mark entered by user is less than 0 or greater than 100
if marks<0 or marks>100:
print("Invalid Input")
#end
exit()
#taking percentage of marks in e-learning
e_marks=int(input("Enter the percentage of marks scored in online learning: "))
#if marks>=50
#to include bonus in marks
if marks>=50:
#if percentage in e-learning is greater or equal to 80
if e_marks>=80:
#add bonus 10 percent of marks
marks+=0.1*marks
#if greater than or equal to 50
elif e_marks>=50:
#add bonus of 8 percent
marks+=0.08*marks
#if final marks after adding bonus is greater than 100
#make it 100
if marks>100:
marks=100
#printing final result
print("Final marks =",marks)
#if you want to round of the marks:
#print("Final marks=",round(marks))
#if marks less than 50: declare fail
if marks<50:
print("fail")
else:
#otherwise pass
print("pass")
#Importting csv module
import csv
#csv file name
filename= "aapi.csv"
# intiliaze titles and rows
fields =0
rows = 0
# reading csv file
with open(filename,'r') as csvfile:
# extract each data row one by one
csvreader=csv.reader(csvfile)
rows.append(rows)
# get total no of rwos
print("Total no of rows:%d%(csvreader.line_num)")
# print fields name
print('Field names are:' + ', '.join(field for field in fields))
# print first 5 rows
print('\n First 5 rows are:\n')
for row in rows[:5]:
# parsing each column of rows
for col in row:
print("%10s"%col),
print('\n')
eval("10")
print("Hellow world")
python("Hello")
n=int(input())
for i in range (n):
a,b,k=(map(int,input().split()))
if a>=b:
print(k//b)
else:
print(k//a)
# A brute force approach based
# implementation to find if a number
# can be written as sum of two squares.
# function to check if there exist two
# numbers sum of whose squares is n.
def sumSquare( n) :
i = 1
while i * i <= n :
j = 1
while(j * j <= n) :
if (i * i + j * j == n) :
print(i, "^2 + ", j , "^2" )
return True
j = j + 1
i = i + 1
return False
# driver Program
n = 25
if (sumSquare(n)) :
print("Yes")
else :
print( "No")