This method must return a result of type int error
in
Programming Questions
•
11 months ago
if i try to run the program i get this error.
what am i doing wrong.
- int click = 0;
- void draw() {
- int sec = millis()/1000;
- int time = 60 - sec;
- int timecount = addTime(time);
- println(time);
- }
- int addTime(int time){
- if(click== 1){
- time = time + 5;
- click = 0;
- return time;
- }
- }
1