Dibatalkan

c# function to format measurement string

write a function to standardize format of a measurement string in feet and inches.

- result should be in this format: [feet]'[inches] x [feet]" x [inches]"

example:

L x W

3'6" x 5'6" = 3'6" x 5'6"

5' x 8' = 5'0" x 8'0"

5'4" x 8' = 5'4" x 8'0"

5' x 8'5" = 5'0" x 8'5"

9" x 6" = 0'9" x 0'6"

*9" x 6" round= *0'9" x 0'6" round

L x W x H

5'4" x 8' x 5' = 5'4" x 8'0" x 5'0"

5'4" x 8' x 5'2" = 5'4" x 8'0" x 5'2"

string teststring = "abcdefg 5'4" x 8' x 5'2" test ";

// expected output: abcdefg 5'4" x 8'0" x 5'2" test

string FormatFeetInches(string input);

Kemahiran: Pengaturcaraan C#

Lihat lebih lanjut: to string, string 2, function programming, string programming, sharp test, programming string, programming input output, programming function, abcdefg, measurement, function, c w, string function, magento format function, format output, function write, write newspaper article example, write intoduction conclusion example, write news paper example, write authorization letter example

Tentang Majikan:
( 2 ulasan ) Richardson, United States

ID Projek: #1534894