codinasion-archive / codinasion-programme

An open source codebase for sharing programming solutions.
https://codinasion.vercel.app/programme
MIT License
62 stars 147 forks source link

Print Even Numbers #97

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Title of article

Write a Python programme to print first n even numbers.

Additional information

Input: 5
Output: 0 2 4 6 8

Code of Conduct

pa11teddu commented 2 years ago
n = int(input())
for i in range(0,2*n):
    if(i%2==0):
        print(i, end=" ")
harshraj8843 commented 2 years ago

Hii @PA11TEDDU

Thanks for contributing to this open source project 😃

Could you please open a pull request for this.

pa11teddu commented 2 years ago

Sure @harshraj8843

harshraj8843 commented 2 years ago

Thanks @PA11TEDDU

You can see this guide to add file and open pull request.