Mode Gelap

Recent in Fashion

Best Seller Books

FACTORS

  • Problem Description

    The program finds the factors of a number, which means the other numbers which can divide the given number. 
    Eg: 5 is divisible by 5 and 1
  • CODING ARENA
  • a=int(input())
    for i in range(1,a+1):
        if(a%i==0):
            print(i)
  • Test Case 1

    Input (stdin)
    6

    Expected Output
    1

    2

    3

    6
  • Test Case 2

    Input (stdin)
    5

    Expected Output
    1

    5

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

0 Comment

Post a Comment

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads