user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D84(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    -0x3c(%rbp),%rsi
  lea    D78(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rdx
  mov    %rsp,%rsi
  lea    0x0(,%rdx,4),%rax
  mov    %rdx,%rdi
  mov    %rax,-0x60(%rbp)
  mov    %rdx,%rax
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rcx
  mov    %rcx,%rax
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rsi
  and    $0xfffffffffffffff0,%rax
  cmp    %rsi,%rsp
  je     L505
L566:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L566
L505:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L32
L508:
  mov    -0x60(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rsp,%rbx
  lea    0xf(%rax),%rcx
  mov    %rcx,%rax
  and    $0xfffffffffffff000,%rcx
  and    $0xfffffffffffffff0,%rax
  sub    %rcx,%rsi
L328:
  cmp    %rsi,%rsp
  je     L477
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L328
L32:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L508
L477:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L60
L99:
  lea    0x3(%rsp),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffffc,%rax
  mov    %rax,-0x78(%rbp)
  lea    0xf(,%rdx,8),%rax
  shr    $0x2,%rcx
  mov    %rax,%rsi
  mov    %rcx,-0x88(%rbp)
  mov    %rax,%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
L355:
  cmp    %rcx,%rsp
  je     L554
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L355
L60:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L99
L554:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L377
  orq    $0x0,-0x8(%rsp,%rdx,1)
L377:
  lea    0x7(%rsp),%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffffff8,%rdx
  shr    $0x3,%rcx
  mov    %rdx,-0x48(%rbp)
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rcx,-0x80(%rbp)
  mov    %rsp,%rcx
  and    $0xfffffffffffffff0,%rdx
  sub    %rax,%rcx
L696:
  cmp    %rcx,%rsp
  je     L636
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L696
L636:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L652
  orq    $0x0,-0x8(%rsp,%rax,1)
L652:
  lea    0x7(%rsp),%rcx
  mov    $0x4,%esi
  xor    %r12d,%r12d
  mov    %rcx,%rax
  and    $0xfffffffffffffff8,%rcx
  shr    $0x3,%rax
  mov    %rcx,%r13
  mov    %rax,-0x90(%rbp)
  call   <calloc@plt>
  mov    -0x3c(%rbp),%edi
  mov    $0x4,%esi
  mov    %rax,-0x68(%rbp)
  call   <calloc@plt>
  mov    -0x3c(%rbp),%edi
  mov    -0x48(%rbp),%r14
  mov    %rax,-0x70(%rbp)
  test   %edi,%edi
  jle    L207
  cs nopw 0x0(%rax,%rax,1)
L336:
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    -0x3c(%rbp),%edi
  mov    $0x4,%esi
  mov    %rax,(%r14,%r12,8)
  call   <calloc@plt>
  mov    -0x3c(%rbp),%edi
  mov    %rax,0x0(%r13,%r12,8)
  add    $0x1,%r12
  cmp    %r12d,%edi
  jg     L336
L207:
  lea    D81(%rip),%rdi
  call   <puts@plt>
  mov    -0x3c(%rbp),%ecx
  test   %ecx,%ecx
  jle    L40
  mov    -0x60(%rbp),%rax
  mov    %rbx,-0x50(%rbp)
  xor    %r14d,%r14d
  lea    D116(%rip),%r12
  mov    %r13,-0x98(%rbp)
  shr    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  xor    %eax,%eax
  mov    %eax,%r13d
  nopl   (%rax)
L316:
  mov    -0x50(%rbp),%rax
  xor    %r15d,%r15d
  lea    (%rax,%r14,4),%rbx
  nopl   0x0(%rax,%rax,1)
L407:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  add    $0x4,%rbx
  cmp    %r15d,%eax
  jg     L407
  add    $0x1,%r13d
  cmp    %r13d,%eax
  jle    L195
  add    -0x58(%rbp),%r14
  jmp    L316
L195:
  mov    -0x50(%rbp),%rbx
  mov    -0x98(%rbp),%r13
L40:
  lea    D120(%rip),%rdi
  call   <puts@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  jle    L245
  mov    -0x78(%rbp),%r15
  xor    %r14d,%r14d
  lea    D116(%rip),%r12
  nopl   0x0(%rax)
L231:
  mov    %r15,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  add    $0x4,%r15
  cmp    %r14d,%eax
  jg     L231
  test   %eax,%eax
  jle    L245
  mov    -0x60(%rbp),%r8
  mov    -0x48(%rbp),%rsi
  movslq %eax,%rdi
  xor    %edx,%edx
  movss  D121(%rip),%xmm1
  shr    $0x2,%r8
  cs nopw 0x0(%rax,%rax,1)
L96:
  mov    0x0(%r13,%rdx,8),%rcx
  movss  %xmm1,(%rcx,%rdx,4)
  movslq %edx,%rcx
  imul   %r8,%rcx
  movss  (%rbx,%rcx,4),%xmm0
  mov    (%rsi,%rdx,8),%rcx
  add    $0x1,%rdx
  movss  %xmm0,(%rcx)
  cmp    %rdi,%rdx
  jne    L96
  cmp    $0x1,%eax
  jle    L245
  mov    -0x80(%rbp),%rdi
  lea    -0x2(%rax),%r15d
  lea    -0x1(%rax),%r8d
  mov    0x0(,%rdi,8),%rsi
  mov    -0x90(%rbp),%rdi
  mov    0x0(,%rdi,8),%rdx
  mov    %rdx,%rdi
  sub    %rbx,%rdi
  sub    $0x4,%rdi
  cmp    $0x8,%rdi
  seta   %r9b
  cmp    $0x2,%r15d
  seta   %dil
  test   %dil,%r9b
  mov    %eax,%edi
  je     L509
  lea    (%rdx,%rdi,4),%r9
  cmp    %r9,%rsi
  setae  %r9b
  cmp    %rdx,%rsi
  setbe  %r10b
  or     %r10b,%r9b
  je     L509
  mov    %r8d,%edi
  movss  (%rsi),%xmm1
  shr    $0x2,%edi
  lea    -0x1(%rdi),%r9d
  mov    $0x4,%edi
  shufps $0x0,%xmm1,%xmm1
  shl    $0x4,%r9
  add    $0x14,%r9
L389:
  movups (%rbx,%rdi,1),%xmm0
  divps  %xmm1,%xmm0
  movups %xmm0,(%rdx,%rdi,1)
  add    $0x10,%rdi
  cmp    %r9,%rdi
  jne    L389
  mov    %r8d,%edi
  and    $0xfffffffc,%edi
  lea    0x1(%rdi),%r9d
  cmp    %r8d,%edi
  je     L589
  mov    %edi,%r10d
  movslq %r9d,%r9
  lea    (%rbx,%r10,4),%r10
  lea    0x0(,%r9,4),%r11
  movss  0x4(%r10),%xmm0
  divss  (%rsi),%xmm0
  movss  %xmm0,(%rdx,%r9,4)
  lea    0x2(%rdi),%r9d
  cmp    %r9d,%eax
  jle    L589
  add    $0x3,%edi
  movss  0x8(%r10),%xmm0
  divss  (%rsi),%xmm0
  movss  %xmm0,0x4(%rdx,%r11,1)
  cmp    %edi,%eax
  jle    L589
  movss  0xc(%r10),%xmm0
  divss  (%rsi),%xmm0
  movss  %xmm0,0x8(%rdx,%r11,1)
L589:
  mov    %r8d,%ecx
  mov    -0x60(%rbp),%r14
  mov    $0x1,%r8d
  mov    $0x2,%r9d
  mov    %rcx,-0x50(%rbp)
  pxor   %xmm2,%xmm2
  add    %r14,%rbx
  mov    %rbx,%r11
  nopw   0x0(%rax,%rax,1)
L609:
  mov    -0x48(%rbp),%rax
  mov    $0x1,%ecx
  mov    (%rax,%r8,8),%rdx
  nopl   (%rax)
L275:
  lea    0x0(,%rcx,4),%rdi
  xor    %eax,%eax
  movaps %xmm2,%xmm1
  nopl   (%rax)
L174:
  mov    0x0(%r13,%rax,8),%rsi
  movss  (%rsi,%rdi,1),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  add    $0x1,%rax
  addss  %xmm0,%xmm1
  cmp    %rcx,%rax
  jne    L174
  movss  (%r11,%rax,4),%xmm0
  lea    0x1(%rax),%rcx
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  cmp    %r9,%rcx
  jne    L275
  cmp    -0x50(%rbp),%r8
  je     L245
  mov    %r15d,%eax
  mov    0x0(%r13,%r8,8),%r10
  lea    (%rdx,%r8,4),%r12
  lea    0x0(,%r9,4),%rsi
  sub    %r8d,%eax
  lea    0x2(%r8,%rax,1),%rdi
  shl    $0x2,%rdi
  nopw   0x0(%rax,%rax,1)
L202:
  xor    %eax,%eax
  movaps %xmm2,%xmm1
  nopl   (%rax)
L315:
  mov    0x0(%r13,%rax,8),%rcx
  movss  (%rcx,%rsi,1),%xmm0
  mulss  (%rdx,%rax,4),%xmm0
  add    $0x1,%rax
  addss  %xmm0,%xmm1
  cmp    %r8,%rax
  jne    L315
  movss  (%rbx,%rsi,1),%xmm0
  subss  %xmm1,%xmm0
  divss  (%r12),%xmm0
  movss  %xmm0,(%r10,%rsi,1)
  add    $0x4,%rsi
  cmp    %rdi,%rsi
  jne    L202
  add    $0x1,%r9
  add    $0x1,%r8
  add    %r14,%rbx
  add    %r14,%r11
  jmp    L609
L245:
  lea    D18(%rip),%rdi
  xor    %r14d,%r14d
  lea    D82(%rip),%r12
  call   <puts@plt>
  mov    -0x3c(%rbp),%eax
  test   %eax,%eax
  jle    L357
  mov    %r13,-0x50(%rbp)
  mov    -0x48(%rbp),%r15
  nopw   0x0(%rax,%rax,1)
L649:
  mov    (%r15,%r14,8),%rbx
  xor    %r13d,%r13d
  nopw   0x0(%rax,%rax,1)
L291:
  pxor   %xmm0,%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  cvtss2sd (%rbx,%r13,4),%xmm0
  call   <printf@plt>
  add    $0x1,%r13
  cmp    %r13d,-0x3c(%rbp)
  jg     L291
L648:
  mov    $0xa,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  mov    -0x3c(%rbp),%eax
  cmp    %r14d,%eax
  jle    L681
  test   %eax,%eax
  jg     L649
  jmp    L648
L681:
  mov    -0x50(%rbp),%r13
L357:
  mov    $0xa,%edi
  xor    %r14d,%r14d
  lea    D82(%rip),%r12
  call   <putchar@plt>
  lea    D49(%rip),%rdi
  call   <puts@plt>
  mov    -0x3c(%rbp),%edi
  test   %edi,%edi
  jle    L665
  nopl   0x0(%rax)
L288:
  mov    0x0(%r13,%r14,8),%r15
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L591:
  pxor   %xmm0,%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  cvtss2sd (%r15,%rbx,4),%xmm0
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jg     L591
L433:
  mov    $0xa,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  mov    -0x3c(%rbp),%edi
  cmp    %r14d,%edi
  jle    L319
  test   %edi,%edi
  jg     L288
  jmp    L433
L319:
  test   %edi,%edi
  jle    L665
  mov    -0x80(%rbp),%rax
  mov    -0x88(%rbp),%rbx
  mov    0x0(,%rax,8),%rax
  movss  0x0(,%rbx,4),%xmm0
  divss  (%rax),%xmm0
  mov    -0x68(%rbp),%rax
  movss  %xmm0,(%rax)
  cmp    $0x1,%edi
  je     L329
  mov    -0x78(%rbp),%r10
  mov    -0x48(%rbp),%r12
  mov    %rax,%rsi
  xor    %r11d,%r11d
  mov    $0x4,%r8d
  mov    $0x1,%r9d
  pxor   %xmm2,%xmm2
  lea    0x10(%rax),%rbx
  nopw   0x0(%rax,%rax,1)
L180:
  mov    (%r12,%r8,2),%rcx
  cmp    $0x2,%r11d
  jbe    L223
  mov    %r9d,%eax
  mov    %rcx,%r14
  movaps %xmm2,%xmm1
  shr    $0x2,%eax
  sub    %rsi,%r14
  lea    -0x1(%rax),%edx
  mov    %rsi,%rax
  shl    $0x4,%rdx
  add    %rbx,%rdx
  nopw   0x0(%rax,%rax,1)
L538:
  movups (%rax,%r14,1),%xmm0
  movups (%rax),%xmm6
  add    $0x10,%rax
  mulps  %xmm6,%xmm0
  addss  %xmm0,%xmm1
  movaps %xmm0,%xmm3
  shufps $0x55,%xmm0,%xmm3
  addss  %xmm1,%xmm3
  movaps %xmm0,%xmm1
  unpckhps %xmm0,%xmm1
  shufps $0xff,%xmm0,%xmm0
  addss  %xmm3,%xmm1
  addss  %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L538
  mov    %r9d,%edx
  and    $0xfffffffc,%edx
  test   $0x3,%r9b
  je     L638
L333:
  movslq %edx,%r14
  movss  (%rcx,%r14,4),%xmm0
  mulss  (%rsi,%r14,4),%xmm0
  lea    0x0(,%r14,4),%rax
  lea    0x1(%rdx),%r14d
  addss  %xmm0,%xmm1
  cmp    %r11d,%edx
  jge    L638
  movss  0x4(%rsi,%rax,1),%xmm0
  mulss  0x4(%rcx,%rax,1),%xmm0
  addss  %xmm0,%xmm1
  cmp    %r11d,%r14d
  jge    L638
  movss  0x8(%rsi,%rax,1),%xmm0
  mulss  0x8(%rcx,%rax,1),%xmm0
  addss  %xmm0,%xmm1
L638:
  movss  (%r10,%r8,1),%xmm0
  add    $0x1,%r9d
  add    $0x1,%r11d
  subss  %xmm1,%xmm0
  divss  (%rcx,%r8,1),%xmm0
  movss  %xmm0,(%rsi,%r8,1)
  add    $0x4,%r8
  cmp    %r9d,%edi
  jne    L180
L329:
  lea    -0x1(%rdi),%r11d
  mov    -0x68(%rbp),%rsi
  mov    -0x70(%rbp),%r8
  movslq %r11d,%r9
  mov    %r11d,%edx
  shl    $0x2,%r9
  mov    %r9,%rax
  xchg   %ax,%ax
L282:
  mov    0x0(%r13,%rax,2),%rcx
  movss  (%rax,%rsi,1),%xmm0
  divss  (%rcx,%rax,1),%xmm0
  mov    %edx,%ecx
  sub    $0x4,%rax
  movss  %xmm0,0x4(%rax,%r8,1)
  sub    $0x1,%edx
  cmp    %ecx,%edi
  jle    L282
  cmp    $0xffffffff,%edx
  je     L665
  mov    -0x70(%rbp),%rax
  movslq %edx,%r8
  pxor   %xmm2,%xmm2
  lea    -0x2(%rdi),%r14d
  mov    $0xfffffffffffffff4,%rbx
  shl    $0x2,%r8
  mov    $0x1,%r12d
  add    %rax,%r9
  sub    %rax,%rbx
  mov    %rax,%r10
  lea    -0x1c(%r9),%rcx
  lea    -0xc(%r9),%r15
  mov    %rcx,-0x50(%rbp)
  mov    %r15,-0x48(%rbp)
  mov    -0x68(%rbp),%r15
  nopl   0x0(%rax)
L522:
  mov    %r11d,%edi
  mov    %r14d,%eax
  mov    0x0(%r13,%r8,2),%r9
  sub    %edx,%edi
  cmp    %edx,%r11d
  cmovle %r12d,%edi
  sub    %edx,%eax
  cmp    $0x2,%eax
  jbe    L365
  cmp    %edx,%r11d
  jle    L365
  mov    %edi,%eax
  mov    -0x50(%rbp),%rsi
  movaps %xmm2,%xmm1
  lea    (%r9,%rbx,1),%rcx
  shr    $0x2,%eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  sub    %rax,%rsi
  mov    -0x48(%rbp),%rax
  cs nopw 0x0(%rax,%rax,1)
L135:
  movups (%rax),%xmm0
  movups 0xc(%rax,%rcx,1),%xmm3
  sub    $0x10,%rax
  shufps $0x1b,%xmm3,%xmm3
  shufps $0x1b,%xmm0,%xmm0
  mulps  %xmm3,%xmm0
  addss  %xmm0,%xmm1
  movaps %xmm0,%xmm3
  shufps $0x55,%xmm0,%xmm3
  addss  %xmm1,%xmm3
  movaps %xmm0,%xmm1
  unpckhps %xmm0,%xmm1
  shufps $0xff,%xmm0,%xmm0
  addss  %xmm3,%xmm1
  addss  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L135
  mov    %edi,%ecx
  mov    %r11d,%eax
  and    $0xfffffffc,%ecx
  sub    %ecx,%eax
  cmp    %edi,%ecx
  je     L657
L534:
  movslq %eax,%rsi
  movss  (%r9,%rsi,4),%xmm0
  mulss  (%r10,%rsi,4),%xmm0
  lea    0x0(,%rsi,4),%rcx
  lea    -0x1(%rax),%esi
  addss  %xmm0,%xmm1
  cmp    %esi,%edx
  jge    L657
  movss  -0x4(%r10,%rcx,1),%xmm0
  mulss  -0x4(%r9,%rcx,1),%xmm0
  sub    $0x2,%eax
  addss  %xmm0,%xmm1
  cmp    %edx,%eax
  jle    L657
  movss  -0x8(%r10,%rcx,1),%xmm0
  mulss  -0x8(%r9,%rcx,1),%xmm0
  addss  %xmm0,%xmm1
L657:
  movss  (%r8,%r15,1),%xmm0
  sub    $0x1,%edx
  subss  %xmm1,%xmm0
  divss  (%r9,%r8,1),%xmm0
  sub    $0x4,%r8
  movss  %xmm0,0x4(%r8,%r10,1)
  cmp    $0xffffffff,%edx
  jne    L522
L665:
  lea    D54(%rip),%rdi
  xor    %ebx,%ebx
  lea    D28(%rip),%r13
  call   <puts@plt>
  mov    -0x3c(%rbp),%eax
  mov    -0x70(%rbp),%r12
  test   %eax,%eax
  jle    L373
  nop
L454:
  mov    %ebx,%esi
  pxor   %xmm0,%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  cvtss2sd (%r12),%xmm0
  add    $0x1,%ebx
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %ebx,-0x3c(%rbp)
  jg     L454
L373:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L365:
  mov    %r11d,%eax
  movaps %xmm2,%xmm1
  jmp    L534
L223:
  movaps %xmm2,%xmm1
  xor    %edx,%edx
  jmp    L333
L509:
  mov    $0x1,%eax
L647:
  movss  (%rbx,%rax,4),%xmm0
  divss  (%rsi),%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L647
  jmp    L589
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D84
type_infered: string
name: disassemble_data
arguments: data_label: D78
type_infered: string
name: disassemble_data
arguments: data_label: D81
type_infered: string
name: disassemble_data
arguments: data_label: D116
type_infered: string
name: disassemble_data
arguments: data_label: D120
type_infered: string
name: disassemble_data
arguments: data_label: D121
type_infered: byte[4]
name: disassemble_data
arguments: data_label: D18
type_infered: string
name: disassemble_data
arguments: data_label: D82
type_infered: string
name: disassemble_data
arguments: data_label: D49
type_infered: string
name: disassemble_data
arguments: data_label: D54
type_infered: string
name: disassemble_data
arguments: data_label: D28
type_infered: string

tool: D84: Enter the order of the matrix

tool: D78: %d

tool: D81: Enter all coefficients of matrix :

tool: D116: %f

tool: D120: Enter elements of B matrix :

tool: {"D121": [0x00,0x00,0x80,0x3f]}

tool: D18: L matrix is 

tool: D82: 	%.6f	

tool: D49: U matrix is 

tool: D54: Set of solution is:

tool: D28: x[%d] = %.6f


assistant: ```c
int main(void) {
  int n, i, k, j, p;
  printf("Enter the order of the matrix\n");
  scanf("%d", &n);
  float a[n][n], b[n], sum;
  float *l[n], *u[n], *z, *x;
  z = (float *)calloc(n, sizeof(float));
  x = (float *)calloc(n, sizeof(float));
  for (i = 0; i < n; i++) {
    l[i] = (float *)calloc(n, sizeof(float));
    u[i] = (float *)calloc(n, sizeof(float));
  }
  printf("Enter all coefficients of matrix :\n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      scanf("%f", &a[i][j]);
  }
  printf("Enter elements of B matrix :\n");
  for (i = 0; i < n; i++)
    scanf("%f", &b[i]);
  for (i = 0; i < n; i++) {
    u[i][i] = 1;
    l[i][0] = a[i][0];
  }
  for (j = 1; j < n; j++) {
    u[0][j] = a[0][j] / l[0][0];
  }
  for (i = 1; i < n; i++) {
    for (j = 1; j <= i; j++) {
      sum = 0;
      for (k = 0; k <= j - 1; k++) {
        sum += l[i][k] * u[k][j];
      }
      l[i][j] = a[i][j] - sum;
    }
    for (j = i + 1; j < n; j++) {
      sum = 0;
      for (k = 0; k <= i - 1; k++) {
        sum += l[i][k] * u[k][j];
      }
      u[i][j] = (a[i][j] - sum) / l[i][i];
    }
  }
  printf("L matrix is \n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      printf("\t%.6f\t", l[i][j]);
    printf("\n");
  }
  printf("\n");
  printf("U matrix is \n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      printf("\t%.6f\t", u[i][j]);
    printf("\n");
  }
  for (i = 0; i < n; i++) {
    sum = 0;
    for (p = 0; p < i; p++)
      sum += l[i][p] * z[p];
    z[i] = (b[i] - sum) / l[i][i];
  }
  for (i = n - 1; i >= 0; i--) {
    sum = 0;
    for (p = n - 1; p > i; p--)
      sum += u[i][p] * x[p];
    x[i] = (z[i] - sum) / u[i][i];
  }
  printf("Set of solution is:\n");
  for (i = 0; i < n; i++)
    printf("x[%d] = %.6f\n", i, x[i]);
  printf("\n");
  return 0;
}
```