Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int k,i,j;
- float A[10][10];
- for (i=0; i<10; i++)
- {
- for (j=0; j<10; j++)
- {
- A[i][j]=i+(j/10.0);
- }
- }
- for(i=0; i<10; i++)
- {
- for (j=0; j<10; j++)
- {
- printf("%.1f\t", A[i][j]);
- }
- }
- printf("\n\n");
- for (i=0; i<1; i++)
- {
- for (j=0; j<10; j++)
- {
- printf("%.1f\t",A[0][j]);
- }
- }
- k=1;
- for (j=0; j<1; j++)
- {
- for(i=1; i<9; i++)
- {
- printf("%.1f\t\t\t\t\t\t\t\t\t",A[i][0]);
- printf("%.1f\n",A[k][9]);
- k++;
- }
- }
- for(i=9;i<10;i++)
- {
- for(j=0;j<10;j++)
- {
- printf("%.1f\t",A[9][j]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement