#include #include int main() { printf("a) Print the numbers >5 and <20 stored in the integer array a.\n"); int a[]={3, 4, 5, 8, 14, 20, 34, 7, 9, 31}; // this is just a sample array int i; for(i=0; i<10; i++) if((a[i]>5) && (a[i]<20)) printf("%d, ", a[i]); printf("\n\n"); printf("b) Print the numbers between 1 and 1000 that are perfect squares.\n"); int n; for(n=1; n*n <= 1000; n++) // calculate the numbers and fill the array printf("%d, ", n*n); printf("\n\n"); system("pause"); }