Menu
Coddy logo textTech

Recap Challenge #1

Lesson 4 of 14 in Coddy's Strings and Arrays in C# course.

challenge icon

Challenge

Easy

Write a function named isNumber that gets a string s and returns true if all the characters in s are numbers (0 - 9), otherwise false.

Try it yourself

using System;

class IsNumber {
    public static bool isNumber(string s) {
        // Write code here
    }
}

All lessons in Strings and Arrays in C#