Python program to print first n numbers divisible by 5


Asked by admin @ in Computer Science viewed by 358 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 366 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 333 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 303 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 341 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 338 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 283 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 295 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 390 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 351 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 4056 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 426 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 459 persons

Mean of first n natural numbers

N is the smallest number that has 5 factors

Asked by admin @ in Math viewed by 264 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 347 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 307 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 19024 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15811 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10973 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10403 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8722 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8137 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7842 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6489 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5791 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5693 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5476 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4981 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4972 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4684 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4488 persons