Header Ads Widget

Write a program to print first 10 natural numbers in Python

 

 Write a program to print first 10 natural numbers in Python

Write a program in c to print the first 10 natural number . Natural number are starting from example : 1 ,2 , 3 ..........

Sample output

The first 10 Natural Numbers are: 
1 
2 
3 
4 
5 
6 
7 
8 
9 
10

 Write a program to print first 10 natural numbers in Python

The objective of the code is to print the first 10 natural numbers .

Code(Python):-

print("The first 10 Natural Numbers are:")
for i in range(1,11):
print(i)

Output:-

The first 10 Natural Numbers are:
1
2
3
4
5
6
7
8
9
10

       


Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-

Post a Comment

0 Comments