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);

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

should be:

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

Kemahiran: Pengaturcaraan C#

Lihat lebih lanjut: to string, string programming, string in c programming, string c programming, string 2, programming function, function programming, function in programming, c string programming, c sharp test, c # sharp test, c programming string, c programming input output, c programming function, 8 x 8, abcdefg, measurement, function, c# w, c w, string function, magento format function, simple string aes encrypt function project, format output, convert number format string text format excel macro

Tentang Majikan:
( 2 ulasan ) Richardson, United States

ID Projek: #1534894