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
5 odpowiedzi
+ 2
Jong Show your attempt
+ 2
Jong I recommended you to use Linq
https://code.sololearn.com/c3wbruv24gZM/?ref=app
+ 1
Did you try it?
0
int num = Convert.ToInt32(Console.ReadLine());
int res = 1;
while (num != res){
Console.WriteLine(num/2);
}
0
thanks