{"id":5422,"date":"2022-01-28T23:00:00","date_gmt":"2022-01-28T17:30:00","guid":{"rendered":"https:\/\/www.codingbroz.com\/?p=5422"},"modified":"2022-01-28T18:29:17","modified_gmt":"2022-01-28T12:59:17","slug":"c-program-to-find-neon-number","status":"publish","type":"post","link":"https:\/\/www.codingbroz.com\/c-program-to-find-neon-number\/","title":{"rendered":"C Program to Find Neon Number"},"content":{"rendered":"\n

In this post, we will learn how to find neon numbers using the C<\/strong> Programming language. But before that, let\u2019s learn about neon numbers.<\/p>\n\n\n\n

A number is said to be a neon number<\/strong> if the sum of the digits of the square of the number is equal to the same number. For example, 9<\/strong> is a neon number because 9 * 9 = 81 <\/strong>and the sum of 81<\/strong> is 8 + 1 = 9<\/strong> which is equal to the original number.<\/p>\n\n\n\n

We will use following approaches to find neon number:<\/p>\n\n\n\n

  1. Using For Loop<\/li>
  2. Using While Loop<\/li><\/ol>\n\n\n\n

    So, without further ado, let\u2019s begin this tutorial.<\/p>\n\n\n\n

    \n