Ask Question
4 January, 16:22

Write a Java program to declare and store numbers from 1 to 10 in a single dimensional array and

display the output in the following format. 1 42769 38812 7 8 9 10

+3
Answers (1)
  1. 4 January, 18:25
    0
    Class x {

    public static void main (String args[])

    {

    /*declaration, instantiation and initialization * /

    int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a Java program to declare and store numbers from 1 to 10 in a single dimensional array and display the output in the following ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers