Program Output
My cats are Fred and Ginger
My pets are Fred and Ginger
My pets have different names
"Fred" has 4 characters
"Ginger" has 6 characters
Array: saArithmetic
A
Red
Indian
Thought
He
Might
Eat
Toffee
In
Church
Length of saArithmetic = 10
saArithmetic[0] has 1 characters
saArithmetic[1] has 3 characters
saArithmetic[2] has 6 characters
saArithmetic[3] has 7 characters
saArithmetic[4] has 2 characters
saArithmetic[5] has 5 characters
saArithmetic[6] has 3 characters
saArithmetic[7] has 6 characters
saArithmetic[8] has 2 characters
saArithmetic[9] has 6 characters
Convert Strings to Uppercase and Lowercase
saArithmetic[0] is: A and a
saArithmetic[1] is: RED and red
saArithmetic[2] is: INDIAN and indian
saArithmetic[3] is: THOUGHT and thought
saArithmetic[4] is: HE and he
saArithmetic[5] is: MIGHT and might
saArithmetic[6] is: EAT and eat
saArithmetic[7] is: TOFFEE and toffee
saArithmetic[8] is: IN and in
saArithmetic[9] is: CHURCH and church
Number to string: sA = 34
Number to string: fA = 23.34
String to Number: int myInt = 31415926
String to Number: float myPi = 3.1415925
String to Number: double myPi = 3.1415926