Advertisement
joseleonweb

Untitled

Aug 12th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. //Un programa que calcula una divisió i una suma.
  2. public class DivideixISuma {
  3.  
  4.   public static void main(String[] args) {
  5.     double dividend = 20.0;
  6.     double divisor = 6.0;
  7.     double sumarAlFinal = 3.0;
  8.     System.out.println((dividend/divisor) + sumarAlFinal);
  9.   }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement