Python program to print first n numbers divisible by 5


Asked by admin @ in Computer Science viewed by 351 People


Write a Python program using while loop first N numbers divisible by 5.

Answered by admin @



Answer:

# Python Program to Check Number is Divisible by 5 and 11

number = int(input(" Please Enter any Positive Integer : "))

if((number % 5 == 0) and (number % 11 == 0)):

print("Given Number {0} is Divisible by 5 and 11".format(number))

else:

print("Given Number {0} is Not Divisible by 5 and 11".format(number))


Similar Questions

C program to print number in words using switch case

Asked by admin @ in Computer Science viewed by 357 persons

C program to display the number in words using switch case where a sample input and output is given

The sum of first n natural number is

Asked by admin @ in Math viewed by 327 persons

Write the sum of first n natural numbers

The sum of first n even natural number is

Asked by admin @ in Math viewed by 298 persons

Write the sum of first n even natural numbers.

The sum of first n odd natural number is

Asked by admin @ in Math viewed by 330 persons

Find the sum of first n odd natural numbers.

Write the sum of first n natural numbers

Asked by admin @ in Math viewed by 331 persons

Write the sum of first n natural numbers

Write the sum of first n even natural numbers

Asked by admin @ in Math viewed by 277 persons

Sum of all the first n terms of even natural number is

Find the sum of first n even natural numbers

Asked by admin @ in Math viewed by 289 persons

Write the sum of first n even natural numbers.

Find the sum of first n odd natural numbers

Asked by admin @ in Math viewed by 378 persons

Find the sum of first n odd natural numbers.

Write a program to swap two numbers in python

Asked by admin @ in Computer Science viewed by 342 persons

Write a program is python to swap two numbers.

Program to circulate the values of n variables in python

Asked by admin @ in Computer Science viewed by 4047 persons

Ii)Write a python program to circulate the values of n variables.​

The mean of first n odd natural numbers is

Asked by admin @ in Math viewed by 421 persons

7. Find the mean of first n odd natural numbers​

Find the mean of first n natural numbers

Asked by admin @ in Math viewed by 448 persons

Mean of first n natural numbers

N is the smallest number that has 5 factors

Asked by admin @ in Math viewed by 257 persons

Find the smallest number that as 5 composite factors

Find the mean of first 5 prime numbers

Asked by admin @ in Math viewed by 340 persons

Find the arithmetic mean of first five prime numbers​

Square root of a number by newton's method in python

Asked by admin @ in Computers and Technology viewed by 301 persons

Convert Newton’s method for approximating square roots in Project 1 to a recursive function named newton. (Hint: The estimate of the square root should be passed as a second argument …

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19012 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15786 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10957 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10392 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8715 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8124 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7833 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6475 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5781 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5680 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5467 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4973 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4963 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4677 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4480 persons