how to print even or odd numbers from 1 to 10 (first 10 natural number)and how we find sum of these even or odd numbers
Replace this line with your code.
Do you know even or odd numbers?
you can use for loop that goes from 1 to 10 then inside loop you can check whether the number is Divisible by 2 or not.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.