This commit is contained in:
Matej Hajduk 2025-10-15 17:13:39 +02:00
parent 82b7a2e913
commit eadf9c357b

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#define SIZE 10
@ -12,7 +12,7 @@ struct stack{
};
void print(struct stack *s)
{
for(int i = 0; i < s ->values[i]){
for(int i = 0; i < s ->values[i], i++){
printf("%.2f ", s->values[i]);
}
printf("\n");
@ -31,7 +31,7 @@ float pop(struct stack *s)
}
int main(){
struct stack mystack;
mamset(&mystack,0,sizeof(struct stack));
memset(&mystack,0,sizeof(struct stack));
char x[100];
while(fgets(x, 100, stdin)){