Update cv3/program.c
This commit is contained in:
		
							parent
							
								
									22889817c3
								
							
						
					
					
						commit
						bbd2e0f045
					
				| @ -91,7 +91,7 @@ int read(struct stack *s) { | ||||
|                     case '*': result = a * b; break; | ||||
|                     case '/': | ||||
|                         if (b == 0) { | ||||
|                             printf("no input\n"); | ||||
|                             printf("division by zero\n"); | ||||
|                             exit(1); // Exit on division by zero
 | ||||
|                         } | ||||
|                         result = a / b; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user