- C++

C++ : Read array of 10 Integers and Display

Read array of 10 integers and displaying them. “Array is the limited storage(as size mentioned) with ordered series or arrangement of  same kind of data(int or float or char)” Example :Input is asked as : Enter the Array elements, Enter Values like 00,10,20,30,40,50,60,70,80,90 are stored in particular space of array.…

Read More

- C++

C++ Program to Swap two numbers.

  “Swapping of integers is defined as the variables that are interchanged after swapping the variables,called as Swapping of integers” Example: If the input is given as a=5 and b=4 (before Swapping) The output will be as a=4 and b=5 (after Swapping).                 Input: a=20 and b=40, before swapping. Output:…

Read More

- Java

2-Dimensional array in java.

Two dimensional array is nothing but set of many one-dimensional array which is represented in usually rows and columns but they are stored in the continuous memory location. The syntax of the 2-D array is int twoD[][] = new int[4][5]; It allocates 4×5 int elements in an array which internally…

Read More