Idn Poker is a well-known digital poker platform in Asia, particularly in Indonesia. As a part of the official IDN Play network, this platform offers a variety of card games that can be played on both computers and mobile devices. Supported by modern technology and a stable server system, IDN Poker is the choice of many players seeking an poker online terbaik experience with easy and convenient access.

The popularity of IDNSLOT is inextricably linked to the rapid growth of the online gaming industry. Many users are currently seeking a platform that combines easy access, game variety, and high-quality service. The official idn slot online website offers a variety of these features in one place, meeting the ever-growing demand for digital entertainment.

Toto Macau is one of the most sought-after lottery markets by lottery enthusiasts because it provides regular data updates through its Macau Data, Macau Expenditures, Live Draw, and Macau 4D & 5D features. These various information services make it easy for users to monitor the latest result macau and view archives of previous results in one convenient location.

Write a C Program to Check Whether Number is Perfect Or Not Hindi

C Program to Check Whether Number is Perfect Or Not

C का Perfect Number का program बनाने से पहले आपका ये जानना जरूरी है की perfect Number क्या होता है | परफेक्ट नंबर कोई भी एक positive integer है जो की इसके proper positive divisor के sum के बराबर होता है | For Example – 6, 28 etc

C Program to Check Whether Number is Perfect Or Not

Check Whether Number is Perfect Or Not

How – 6 का Perfect Divisor 1,2,3 है जिनसे 6 पूरी तरह divide होता है | 1,2,3 का sum – 6 होगा so 6 is perfect number | 

Program

#include<stdio.h>

int main(){

  int num,i=1,sum=0;

  printf(“Please Enter the number: “);

  scanf(“%d”,&num);

  while(i<num){

      if(num%i==0)

          sum=sum+i;

          i++;

  }

  if(sum==num)

      printf(“%d is perfect number”,i);

  else

      printf(“%d is not perfect number”,i);

  return 0;

}

Sample output:

Enter a number: 28

28 is perfect number

Read Also – What is Object Oriented Programming

Read Also – What is Polymorphism

Read Also – What is C Programming language

Read Also – What is OOPs

Read Also – What is Array in C Programming Language

2 Comments

  1. sunil kumar yadav September 16, 2017
    • Amit Saxena September 18, 2017

Leave a Reply