Skip to content
MathsGenie logo
Open app

Course home

  1. GCSE
  2. Computer Science AQA
  3. Question bank

Programming concepts

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 28

Write a C# program that inputs a single character and checks to see if it is a numeric digit.

Your program should work as follows:

  • Prompt the user to enter a single character and store it in a suitable variable.
  • Determine if the entered character is a numeric digit (between '0' and '9' inclusive).
  • Output DIGIT if the user has entered a numeric digit.
  • Output NOT DIGIT if the user has entered any other character.

You should use meaningful variable name(s), correct C# syntax, and indentation in your answer.

[7]

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts