Skip to content

ManavJain01/Kaprekar-Constant

Repository files navigation

Kaprekar Constant – React Native App

A React Native mobile application that demonstrates Kaprekar’s Constant for 2-digit, 3-digit, and 4-digit numbers.
The app allows users to input a number, apply Kaprekar’s routine step by step, and observe how it converges to the Kaprekar constant.


📱 Features

  • Supports 2-digit, 3-digit, and 4-digit numbers
  • Step-by-step visualization of Kaprekar’s process
  • Input validation (no invalid or identical-digit numbers)
  • Clean and simple UI
  • Works on Android and iOS

🔢 Kaprekar’s Constants

  • 2-digit numbers: 9
  • 3-digit numbers: 495
  • 4-digit numbers: 6174

The app repeatedly:

  1. Rearranges digits in ascending and descending order
  2. Subtracts the smaller number from the larger
  3. Repeats until the Kaprekar constant is reached

🚀 Getting Started

Prerequisites

  • Node.js (>= 16 recommended)
  • npm or yarn
  • React Native CLI or Expo (depending on your setup)
  • Android Studio / Xcode (for emulator or device testing)

Installation

  1. Clone the repository:
    git clone https://github.com/manavjain01/kaprekar-constant.git

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors