#include<stdio.h>
      int main()
      {
          printf("\n\n\t\tStudytonight - Best place to learn\n\n\n");
          int  num, i;
          printf("Enter the number to find the factors of :  ");
          scanf("%d",&num);
          printf("\n\n\nFactors of %d are \n\n", num);
          for(i = 1; i <= num/2; i++)
          {
              if(num%i == 0)
                  printf("\t\t\t%d\n", i);
          }
          printf("\n\n\n\n\t\t\tCoding is Fun !\n\n\n");
          return 0;
      }
      
      C language logo

      Factor

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.