Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
JLE07 Structureren Van Werk

JLE07 Structureren Van Werk

Ratings: (0)|Views: 370|Likes:
Published by Gert_Cuppens_4362
cursus Java leren met Eclipse
cursus Java leren met Eclipse

More info:

Published by: Gert_Cuppens_4362 on May 23, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/23/2010

pdf

text

original

 
Structureren van werk

 

!"#$%

 &"'()*)+,-,.

 +,-,/012

 
Structureren van werk

34"561237$899:%

;"!#

# &(<!
 package
jle07;
import
java.util.Scanner;
 public
 
class
Berekening1 {
 public
 
static
 
void
main(String[] args){
int
getal1, getal2;
int
keuze, resultaat;Scanner input =
new
Scanner(System.
in
);System.
out
.print("geef een eerste getal op>");getal1 = input.nextInt();System.
out
.print("geef een tweede getal op>");getal2 = input.nextInt();System.
out
.println("kies een berekening");System.
out
.println("1 = optelling; 2 = aftrekking");System.
out
.println("3 = deling; 4 = vermenigvuldiging");System.
out
.print("gewenste berekening>");keuze = input.nextInt();resultaat =
bereken
(getal1, getal2, keuze);System.
out
.printf("het resultaat is %d\n",resultaat);}/* main ()*/ 
 
Structureren van werk

 
 public
 
static
 
int
bereken(
int
x,
int
y,
int
z){
if
(z == 1){
return
(x + y);}
else
 
if
(z == 2){
return
(x - y);}
else
 
if
(z == 3){
return
(x / y);}
else
 
if
(z == 4){
return
(x * y);}
else
 
return
(0);}}/* class Berekening1*/ 
!12#5
!"
 (  ; 09#
 
& !

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->