Need some help with my code(Begginer)

I AM a sturdiness beginner. I have a problem that the contract cannot be deployed. What is wrong?

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract ForAndWhileLoops {
function loops() external pure {
for (uint i = 0; i < 10; i++) {

    //go
    if (i == 3) {
        continue;
    }
    if (i == 5) {
        break;
    }
}

uint j = 0;
while (j < 10) {
    j++;
}


function sum(uint _n) external pure returns (uint) {
    uint s;
    for (uint i = 1; i < _n; i++) {
        s += i;
    }
    return s;
}

}

Your missing a closing brace in the loops() function that’s all.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract ForAndWhileLoops {

function loops() external pure {
for (uint i = 0; i < 10; i++) {

  //go
  if (i == 3) {
      continue;
  }
  if (i == 5) {
     break;
  }

}
}

//uint j = 0;
//while (j < 10) {
// j++;
//}

function sumTotal(uint _n) external pure returns(uint) {
uint s;
for(uint i = 1; i < _n; i++) {
s += i;
}
return s;
}
}

Oh, and put this while loop inside some function…
uint j = 0;
while (j < 10) {
/ j++;
}