For question 2:- U can use my following code ...
#include<iostream> #include<cstdio> using namespace std; int main() { int a[]={4,2,5,2,3,5,1,34,14,64,82,94}; int size=sizeof(a)/sizeof(int); // printf("%d",size); for(int i=0;i<(int)sqrt(size);i++)printf("%d ",a[i]); return 0; } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.