Guest User

Untitled

a guest
Jun 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.43 KB | None | 0 0
  1. package maison;
  2.  
  3. public class Exercice3 {
  4.  
  5.     public static void main(String[] args) {
  6.         int base[] = new int[40];
  7.         double calcul[] = new double[40];
  8.         base[0] = 14;
  9.         //System.out.println(base[0]);
  10.         for ( int u = 1 ; 1<base.length ; u++){
  11.             base[u] = base[u-1]+2;
  12.             //System.out.println(base[u]);
  13.         }
  14.         for (int k = 0 ; 0<calcul.length ; k++){
  15.             calcul[k] = (base[0])*3.4;
  16.             System.out.println(calcul[k]);
  17.         }
  18.  
  19.     }
  20. }
Add Comment
Please, Sign In to add comment