Grepper Logo

int a[ ]={4,8,3,2}; a[0] = 23; a[3]= a[1]; a[2]=12; for(int i=0; i<a.length; i++) System.out.println(a[i]);

Energetic Elephant answered on September 17, 2021 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • int sum = 0; for(int i = 10; i > 0; i -= 3) { sum += i; } System.out.println(sum);
  • int[]
  • What will the following code display? int numbers[] = {99, 87, 66, 55, 101); cout << numbers[3] << end1;
  • int a=10,b=20,c=30; int x,y; x=(a,b,c); y =a,b,c; Find the values of x and y ? Output x=30 Y =10
  • #include<stdio.h> int main { int arr[ 5]), i=0; while(i<5) arr[i]=++i; for i=0; i<5; i++) printf("%d", arr[i]; return 0;
  • int a=0; int b=30;
  • Int main ( ) { int i,n; cin>>n; i=n; while(i>=1) { i=i+5; i=i-6; } }
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • Exercise. Create a simple Java program using array named SumOfArray.java that will accept an input of whole numbers or floating point numbers and will return the Sum result. The program must accept at least 5 numbers.
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int main() { setlocale( 0, "ru" ); srand( ( unsigned )time( NULL ) ); const int n = 10; int x[n] = { 0 }; int i, min1; for( i = 0; i < n; ++i ) x[i] = rand() % 100 - 50; for( i = 0; i < n; ++i ) cout << x[
  • unsigned int java
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }
  • int a=0; int b=30;
  • int[] arr = new int[5]; for(int i=0; i<arr.length; i++){ arr[i] = i; } for(int i=0; i<arr.length; i++) { System.out.print(arr[i]); }

  • int a[ ]={4,8,3,2}; a[0] = 23; a[3]= a[1]; a[2]=12; for(int i=0; i<a.length; i++) System.out.println(a[i]);

    0
    Popularity 3/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: int java
    Link to this answer
    Share Copy Link
    Contributed on Sep 17 2021
    Energetic Elephant
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.