Check If An Integer Is Even Or Odd | C++ Example

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии •

  • @ramakrishna4092
    @ramakrishna4092 2 года назад +1

    Hi sir well explained can you do a video on volatile pointer and volatile with const ,what is the difference of using volatile with const and when to use it ..thank you so much sir...

  • @sleepyboy6098
    @sleepyboy6098 Год назад

    what if it says only integers. Invalid characters,strings and symbols. Can you tell me how to do that? thank you

    • @PortfolioCourses
      @PortfolioCourses  Год назад

      Sorry I'm not sure I understand the question. :-( Do you want to input a string and check to see if contains any invalid characters, strings and symbols before checking to see if the int inside the string is even or odd?

    • @sleepyboy6098
      @sleepyboy6098 Год назад

      I want to make a program that can check whether its even or odd. But when you put characters, strings , symbols and negative numbers it should says invalid except for the integers.

    • @sleepyboy6098
      @sleepyboy6098 Год назад

      for example
      Enter intenger: A
      it should says invalid or error

    • @sleepyboy6098
      @sleepyboy6098 Год назад

      can you help me pls