# 5.12) I can create nested loops, so can I create nested try-catch blocks too?



![](https://2172743581-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4k4liN--SZ6ay4iod%2F-LcpJsqaU6dBrTgcNFI2%2F-LcpJyHV2-flhGhFJCeY%2FScreen%20Shot%202019-04-19%20at%204.49.43%20PM.png?alt=media\&token=794983df-4139-4719-a56e-a7b5b049da20)

![](https://2172743581-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4k4liN--SZ6ay4iod%2F-LcpJsqaU6dBrTgcNFI2%2F-LcpK2FFGSUG2k29QaFE%2FScreen%20Shot%202019-04-19%20at%204.49.52%20PM.png?alt=media\&token=24552a29-4872-4926-99ac-9feda5c877d8)



### Problems 1 :&#x20;

![](https://2172743581-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4k4liN--SZ6ay4iod%2F-LcpJsqaU6dBrTgcNFI2%2F-LcpK6cJQHCupFnF-K0F%2FScreen%20Shot%202019-04-19%20at%204.50.07%20PM.png?alt=media\&token=c939d028-258a-491f-9b45-ac1815e8ee1f)

![](https://2172743581-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4k4liN--SZ6ay4iod%2F-LcpJsqaU6dBrTgcNFI2%2F-LcpKEFJsPwYIo_Jw_wu%2FScreen%20Shot%202019-04-19%20at%204.50.15%20PM.png?alt=media\&token=91d73c12-39de-4f33-bee5-c029f11106a3)

### Answer 1:

![](https://2172743581-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4k4liN--SZ6ay4iod%2F-LcpJsqaU6dBrTgcNFI2%2F-LcpKxvmKNjhsBjGDGfA%2FScreen%20Shot%202019-04-19%20at%204.54.46%20PM.png?alt=media\&token=50403c20-ff30-42dc-9e34-2abecee3f421)
