2
Answers

need some one who can help?

angelo3pete

angelo3pete

20y
1.7k
1
i have an assignment in class and i spent countless hours and cannot figure this out. i refuse to give up. my problem is this... taking a number from 1 to 1000 and having the approiate two letter ending added on to it. exampl would be 191st or 293rd or 494th or 522nd I have to create an assignment to use the MOD fucntion I know that mod 5 will cause any number to give me a 1 digit now how to make cvb.net that that 1 digit apply st at ending then put original input value so i will get say, 191st. if you can handle this request please share the knowledge. for I am thirsty and need water....thanx
Answers (2)
0
tyrone.smith

tyrone.smith

NA 72 0 20y
You could maybe create an array..someting in the line of 1 = st, 2 = de, 3 = de. When your number ends with one of these, you could asign it, in an 10 item array. You never know unless you try.
0
Adam Erstelle

Adam Erstelle

NA 343 0 20y
What you could do, is firstly converting the number to a string. Then take the last character of the string, and use it in a select statement. Depending on the last character of the number (now a string) you would append the appropriate suffix to the converted string.