Sha256: 3fa32ae57d4e84b5864f796c5d2a9c33ee9bc3c91b1c80f01cd83f8a88f8e667

Contents?: true

Size: 619 Bytes

Versions: 213

Compression:

Stored size: 619 Bytes

Contents

"
" Determine if a triangle is equilateral, isosceles, or scalene.
"
" An equilateral triangle has all three sides the same length.
"
" An isosceles triangle has at least two sides the same length.
" (It is sometimes specified as having exactly two sides the
" same length, but for the purposes of this exercise we'll say
" at least two.)
"
" A scalene triangle has all sides of different lengths.
"

function! Equilateral(triangle) abort
  " your code goes here
endfunction

function! Isosceles(triangle) abort
  " your code goes here
endfunction

function! Scalene(triangle) abort
  " your code goes here
endfunction

Version data entries

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.158 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.157 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.156 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.155 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.154 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.153 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.152 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.151 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.150 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.149 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.148 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.147 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.146 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.145 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.144 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.143 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.142 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.141 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.140 tracks/vimscript/exercises/triangle/triangle.vim