16 lines
288 B
C
16 lines
288 B
C
|
#include "source/handyalgs.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc, char* argv[]){
|
||
|
Stack s = newStack();
|
||
|
for (int i = 2; i < 500; i+=3){
|
||
|
pushToStack(i, &s);
|
||
|
}
|
||
|
printStack(s);
|
||
|
for (int i = 0; i < 100; i++){
|
||
|
popFromStack(&s);
|
||
|
}
|
||
|
printStack(s);
|
||
|
}
|