Computer Science, asked by shivambholewalia, 8 months ago

Write an algorithem and draw a flow chart to check weather the number is divisible by 2 and 5 or wheather the number is divisible by 2 but not by 5


Answers

Answered by sairohit520
1

Answer:

num=input()

if(num%2==0 && num%5!=0)

    print("divisible by 2 but not by 5")

else if(num%2==0 && num%5==0)

     print("divisible by both 2 and 5")

Explanation: flow chart is attached edits are encouraged flow chart maybe wrong but pseudo code is mostly correct.

Attachments:
Similar questions