Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void wczytaj_tablice(float R[], int n);
- void wypisz_tablice(float R[], int n);
- int main(void) {
- float T1[5];
- wczytaj_tablice(T1, 5);
- wypisz_tablice(T1, 5);
- return 0;
- }
- void wczytaj_tablice(float R[], int n){
- int i;
- for(i=0; i<n-1; i++){
- printf("[%d]=", i);
- scanf("%f", &R[i]);
- }
- }
- void wypisz_tablice(float R[], int n){
- int i;
- for(i=0; i<n-1; i++){
- printf("%.2f ", R[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement