Advertisement
Alx09

Untitled

Apr 26th, 2021
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. unsigned short  st[11], varf;
  4.  
  5. void push(unsigned short x) {
  6.     if (varf > 9) return;
  7.     st[++varf] = x;
  8.    
  9.        
  10. }
  11.  
  12. void pop() {
  13.     unsigned short copie = st[varf];
  14. }
  15.  
  16. int main(){
  17.     unsigned short x, i;
  18.     for (i = 1; i < 8; i++) {
  19.         printf("st[%d]= ", i);
  20.         scanf("%hd", &x);
  21.     }
  22.  
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement