Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Output from p2c 2.00.Oct.15, the Pascal-to-C translator */
- /* From input file "Numbers.pas" */
- #include <stdlib.h>
- #include <stdio.h>
- typedef struct item {
- int data;
- struct item *next;
- } item;
- int main()
- {
- struct item *first = NULL;
- struct item *tmp;
- while (scanf("%d", &tmp->data)!= EOF) {
- tmp = (item *)malloc(sizeof(item));
- tmp->next = first;
- first = tmp;
- }
- tmp = first;
- while (tmp != NULL) {
- printf("%d", tmp->data);
- tmp = tmp->next;
- }
- return 0;
- }
- /* End. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement