Differences between revisions 5 and 6
Revision 5 as of 2019-10-09 14:58:03
Size: 820
Comment:
Revision 6 as of 2019-10-09 17:18:08
Size: 824
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
#acl AdminGroup:read,write,delete,revert,admin TadashiIijima:read,write,delete,revert,admin IijimaStaffGroup: IijimaGroup: IijimaObogGroup: GuestGroup: Known: All: #acl AdminGroup:read,write,delete,revert,admin TadashiIijima:read,write,delete,revert,admin IijimaStaffGroup: IijimaGroup: IijimaObogGroup: GuestGroup: Known: All:read

[ edit ]

  • プログラムの本質的な部分は,下記の 2 行 と 5 行 の関数定義です.

  • 三角数: n × (n + 1) /2

def triangle_number( n ):
    return( int( n * (n + 1) / 2 ) )

def sum_of_one_to_n( n ):
    sum = 0
    for i in range( 1, n+1 ):
        sum += i
    return( sum )

SoftEng: Python/Prog/Example/02/Ex_003a/Digest (last edited 2019-10-09 17:18:08 by TadashiIijima)