i am trying to self teach, but i dont understand this and i hope someone that is kind enought to explain this to me.
Code:#include <stdio.h> #include <stdio.h> #include <conio.h> int main() { int a[3]= {11,22}, b[]={44,55,66}, i; double x[2],y[10]; printf("a[0]=%2d, a[1]=%2d, a[2]=%2d \n" "b[0]=%2d, b[1]=%2d, b[2]=%2d \n\n", a[0],a[1], a[2] ,b[0], b[1],b[2]); printf("please enter two real numbers\n"); scanf("%lf %lf",&x[0], &x[1]); printf("x[0] = %.1lf x[1] = %.1lf\n\n", x[0], x[1]); for (i=0;i<10;i++) { y[i]= i*100.0; printf("y[%1d]=%.2lf\n", i, y[i]); } getch(); }



LinkBack URL
About LinkBacks


