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.180 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.179 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.178 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.177 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.176 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.175 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.174 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.173 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.172 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.171 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.170 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.169 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.167 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.166 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.165 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.164 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.163 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.162 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.161 tracks/vimscript/exercises/triangle/triangle.vim
trackler-2.2.1.160 tracks/vimscript/exercises/triangle/triangle.vim