Convert integer number to String. Length of of this String gives you info, how many digits are. Create int[string.length()] array. Use loop to transcribe all values. On fly convert particular values to int.
Find a better solution (using % and / operators).

i can't think of a solution that uses the modulo operator

Convert integer number to String. Length of of this String gives you info, how many digits are. Create int[string.length()] array. Use loop to transcribe all values. On fly convert particular values to int.
Find a better solution (using % and / operators).

public class Convert {
//1. base form
static int[] convert(int k) {
int[] result = null;
return result;
}
static int[] convert2(int k) {
int size = 3;//arbitrary
int[] result = new int[size];
return result;
}
static int[] convert3(int k) {
int size = 8;
int[] result = new int[size];
for (int i = 0; i < size; i++) {
result[i] = k % 10;
// what can i do with k?
}
return result;
}
public static void main(String[] args) {
int k = 576;
int[] result = convert(k);
//int[] result = convert2(k);
//int[] result = convert3(k);
System.out.println(k);
System.out.println(result[0]);
System.out.println(result[1]);
System.out.println(result[2]);
//System.out.println(result[3]);
}
}

array is a good place, to store calculated values.
Write once, use many times.
Continue...

So for this program im trying to print out the max height the projectile reaches and when i run the str on the object it dosent change the value to ...

Is C similar to C# (C-sharp); or are they completely different ? I was wondering if I should begin learning C# and the transition to C will be a tad ...

Write a program that displays all numbers divisible by 3 and 4 within a range entered by user. Display five numbers per line. Numbers are separated by exactly two spaces. ...