Advertisement
Space-G

Teste

May 17th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int Nt, Lt, T[10], i;
  8. scanf ("%d", &Lt);
  9. for (i=0;i<10;i++)
  10. {
  11. if (i<Lt)
  12. {
  13. scanf ("%d", &T[i]);
  14. }
  15. else
  16. {
  17. T[i]=0;
  18. }
  19. }
  20. for (i=0;i<10;i++)
  21. {
  22. printf ("%d\n", &T[i]);
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement