noobied's blog

By noobied, history, 6 years ago, In English

HOW TO SOLVE THIS QUESTION QUES

  • Vote: I like it
  • -8
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

if (n % 2 == 0) cout << "Even\n"; else cout << "Odd\n";

  • »
    »
    6 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    can you explain more some proof will help

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      In graph with odd number of vertexes exist vertex with even number of incident edges because sum of numbers of incident edges is 2 * number of edges, so it is even. But sum of odd number of odd numbers is odd)