what is wrong with my C++ code thanks?

https://onlinegdb.com/H1QVXlbKH

this is the link that will take you to it.

1 Answer

Relevance
  • EddieJ
    Lv 7
    1 month ago

    if (num_insert >= 0 );

    should have a curly brace, not a semicolon, at the end

    if (num_insert >= 0 ) {

    You also need a } to end main ()

Still have questions? Get your answers by asking now.