/**
* Base properties shared by all block types.
*/
export interface BaseBlock {
id: ID
version: number
created_time: number
last_edited_time: number
parent_id: ID
parent_table: string
alive: boolean
created_by_table: string
created_by_id: ID
last_edited_by_table: string
last_edited_by_id: ID
space_id?: ID
properties?: any
content?: ID[]
type: BlockType
}
#!/bin/bash
for (( counter=10; counter>0; counter-- ))
do
echo -n "$counter "
done
printf "\n"
Python
# Program to display the Fibonacci sequence up to n-th term
nterms = int(input("How many terms? "))
# first two terms
n1, n2 = 0, 1
count = 0
# check if the number of terms is valid
if nterms <= 0:
print("Please enter a positive integer")
elif nterms == 1:
print("Fibonacci sequence upto",nterms,":")
print(n1)
else:
print("Fibonacci sequence:")
while count < nterms:
print(n1)
nth = n1 + n2
# update values
n1 = n2
n2 = nth
count += 1