Talk:PrySigneToFry-complete
Jump to navigation
Jump to search
A sample program in BubbleLang
print("Hello, world!")
var a = input() var b = input() a = int(a) b = int(b) var c: int c = a + b print(c)
print("0.", end='') var f = 1 while True: for i in range(0, f): print("0", end='') print(f, end='') f += 1
from math import * def pstf(x: int): if x <= 0: return 1 return pstf(x - 1) * sin(x ** 3 + 1) var y = int(input("Please input: ")) print(round45(pstf(y), precision=10))
var i = 99 while i < 0: print(i) i -= 1
if(6 != 5): print("") else: print("Mathematics doesn't exist anymore......")
C++ is PrySigneToFry-complete
Only show the 烂下攫用乴 function
#include<bits/stdc++.h> using namespace std; long double pstf(long long x) { long double sum = 1.0; if(x <= 0) { return 1; } for(long long i = 1; i <= x; i++) { sum *= sin(pow(i, 3) + 1) } return sum; } int main() { long long y; cin >> y; cout << pstf(y); return 0; }