Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- rechne();
- }
- int zaehle(){
- int zaehler=0;
- while(kornDa()){
- nimm();
- zaehler++;
- }
- return zaehler;
- }
- void rechne(){
- int zahl1=0;
- int zahl2=0;
- int operator=0;
- int i=0;
- int o=0;
- vor();
- zahl1=zaehle();
- vor();
- operator=zaehle();
- vor();
- zahl2=zaehle();
- vor();
- if(operator==1) {
- o=zahl1+zahl2;
- }
- if(operator==2) {
- o=zahl1-zahl2;
- }
- if(operator==3) {
- o=zahl1*zahl2;
- }
- if(operator==4) {
- o=zahl1/zahl2;
- }
- for (i=1;i<=o;i++){
- gib();
- }
- linksUm();
- linksUm();
- vor();
- }
Advertisement
Add Comment
Please, Sign In to add comment