0

Even number

Write a program to take N numbers as input and output all even numbers from 1 to N inclusive, each on a new line

3rd Mar 2021, 2:36 PM
Jong
Jong - avatar
5 odpowiedzi
+ 2
Jong Show your attempt
3rd Mar 2021, 3:14 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
4th Mar 2021, 11:10 AM
hossein B
hossein B - avatar
+ 1
Did you try it?
3rd Mar 2021, 2:42 PM
Ipang
0
int num = Convert.ToInt32(Console.ReadLine()); int res = 1; while (num != res){ Console.WriteLine(num/2); }
3rd Mar 2021, 4:35 PM
Jong
Jong - avatar
0
thanks
4th Mar 2021, 1:19 PM
Jong
Jong - avatar