Etudes/BTS/Java/Premiere annee/SommeProduitReels.java

29 lines
917 B
Java
Raw Normal View History

2016-10-14 15:52:18 +00:00
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sommeproduitreels;
/**
*
* @author therbron
*/
public class SommeProduitReels {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
float premierReel = 5;
float secondReel = 4;
float troisiemeReel = 8;
float quatriemReel = 2;
System.out.println(premierReel + "+" + secondReel + "+" + troisiemeReel + "+" + quatriemReel + " = " + (premierReel + secondReel + troisiemeReel + quatriemReel));
System.out.println(premierReel + "*" + secondReel + "*" + troisiemeReel + "*" + quatriemReel + " = " + premierReel * secondReel * troisiemeReel * quatriemReel);
}
}