[ create a new paste ] login | about

Link: http://codepad.org/Oq7QRL4f    [ raw code | output | fork ]

C, pasted on Jun 16:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

int main() {
  int array[6]= { 1, 2, 3, 4, 5, 6 };
  
  int len=sizeof(array)/sizeof(int); //length da array com os numeros
  int i;
  for (i=0;i<len;i++)
  {
    printf("%d ",array[i]);
  }

  return 0;
}


Output:
1
1 2 3 4 5 6 


Create a new paste based on this one


Comments: