Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wczytaj_tablice( int t[], int *Nt)
- /*------------------------------------------------------------------
- Wczytanie zadanej liczby elementow do zadanej tablicy
- t[] – odwołanie do tablicy t
- Nt – aktualna liczba elementow w t
- -----------------------------------------------------------------------*/
- {
- int i;
- do {
- *Nt = 0;
- printf("Enter number of entries in array: ");
- scanf("%i", Nt);
- } while ( *Nt <= 0 );
- for( i=0; i < *Nt; i++)
- {
- printf(" t[%i]= ", i);
- scanf("%i", &t[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement