Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- void arraycreate(int* temp,int n){
- for(int i=0;i<n;i++){
- for(int j=0;j<n-1;j++){
- temp[i][j] = abs(i-j);
- }
- }
- }
- int main()
- {
- int n;
- scanf("%d",&n);
- int arr[n][n-1];
- arraycreate(&arr,n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement