SHARE
TWEET

Untitled

a guest Jul 17th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. void OutputArray(int* iArray)
  4. {
  5.     int counter=0;
  6.  
  7.     for(counter = 0;counter < 5;counter ++)
  8.     {
  9.         printf("%d",iArray[counter]);
  10.     }
  11.  
  12.     printf("\n");
  13. }
  14.  
  15. void main ()
  16. {
  17.     int a[5];int temp = 0;int counter = 0;
  18.  
  19.     printf("Please enter 5 numbers...\n");
  20.  
  21.     for(counter = 0;counter < 5;counter ++)
  22.     {
  23.         scanf("%d",&a[counter]);
  24.        
  25.     }
  26.     OutputArray(a);
  27.  
  28.     getche();
  29.  
  30. }
RAW Paste Data
Top