27
This commit is contained in:
		
							parent
							
								
									d74a2081d4
								
							
						
					
					
						commit
						3ead7ac6c6
					
				| @ -86,6 +86,7 @@ int main() { | ||||
|                 printf("no input\n"); | ||||
|                 return 0; | ||||
|             } | ||||
| 
 | ||||
|             float n2 = pop(); | ||||
|             float n1 = pop(); | ||||
|             char operation = arr[0]; | ||||
| @ -97,10 +98,8 @@ int main() { | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     if (stack_top == 0) { | ||||
|         return 0; | ||||
|     }  | ||||
|     else if (stack_top == -1) { | ||||
|     // После выполнения всех операций нужно проверить, что стек пуст
 | ||||
|     if (stack_top == -1) { | ||||
|         printf("no input\n"); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user