donmike25

tut5(1)

Jul 22nd, 2013
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. int main
  3. {
  4.  
  5. int kfc[10];
  6. int x;
  7.  
  8. for (x=0;x<10;x++)
  9. {
  10. kfc[x]=0;
  11. kfc[6]=199;
  12.  
  13. printf("Enter your age pls:");
  14. scanf("%d",&kfc[4]);
  15.  
  16. if(kfc[4]==18)
  17. kfc[7]=1;
  18.  
  19.  
  20.  
  21.  
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment