Back to Browse

Java Program to Check Fascinating Number | For Beginners

835 views
Feb 2, 2023
11:51

Java Program to Check Fascinating Number | For Beginners Welcome to CodeWithBK — your go-to hub for mastering Java programming. In this video, learn how to check if a number is a fascinating number in Java. We will explain the concept of fascinating numbers and guide you step by step with example programs, making it easy for beginners to understand and implement. An integer n (of at least 3 digits) is a fascinating number if the concatenation of the integers (n + 2n + 3n) contains all digits 1-9 exactly once. Number of 0s do not matter. 2n is the value of (2 x n), 3n is the value of (3 x n) We’ll cover: - What is a fascinating number - Logic to check fascinating numbers in Java - Using loops and string concatenation to verify the number - Example programs with detailed explanation - Handling different input cases and common mistakes By the end of this video, you will be able to write your own Java program to check fascinating numbers with ease. Code Link: Find this problem solved in Hindi (using Java) on my CodeWithBK Hindi Channel : https://youtu.be/Fgn85GSOiPg Find this problem solved using C++ (in English) on this Channel : https://youtu.be/H518i-gei8I Perfect for: - B.Tech / BCA students - Java beginners - Coding interview prep - ICSE Class 10 Computer Applications students - ISC Computer Science Class 11 & Class 12 students - AP Computer Science students Programming Language: Java Level: Beginner-friendly Related Videos: - Check Kaprekar Number : https://youtu.be/9nvz_lRxQ44 - Check Krishnamurthy Number : https://youtu.be/CNJ3toQDnro Timestamps: 00:00 Introduction 00:41 Problem explanation - what is a fascinating number 02:23 Solution explanation with pseudocode to heck if an integer is a fascinating number or not 09:27 Java code implementation to check if an integer is a fascinating number or not Like | Comment | Subscribe for more such Java tutorials in simple language! Stay connected: Subscribe: https://www.youtube.com/@CodeWithBK Email: [email protected] Discord: https://discord.gg/3d2U25Zs Coding mentor profile: https://www.codementor.io/@balkrishnasrivastava12 For 1:1 sessions, reach out to me here : https://www.codementor.io/@balkrishnasrivastava12 My YouTube channel where I teach in Hindi : https://www.youtube.com/@CodeWithBKHindi #JavaTutorial #JavaBeginners #CodeWithBK #JavaBeginners #ICSEJava #JavaInterviewQuestions #JavaBasics #javatutorialforbeginners #javaprogrammingbasics #javaprogrammingforbeginners

Download

1 formats

Video Formats

360pmp433.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Java Program to Check Fascinating Number | For Beginners | NatokHD