N = int(input())
Bool = 0
while (N>0) and (Bool == 0):
if ((N % 10) % 2 != 0):
print('Имеются нечетные цифры')
Bool = 1
else:
N//=10
if Bool != 1:
print('ничего нет')
Задание 1
print("Her favorite color is" + {color})
Задание 2
print ("Please enter your name >>")
i = raw_input()
print ("Hello" +" "+ i + "!")
Форматированный код на C# и демонстрация работы на скриншотах.
Код текстом ниже.
using System;
using System.Linq;
namespace task29989793
{
class Program
{
static void Main()
{
Console.Write("Enter number: ");
var number = Console.ReadLine().Select(i => int.Parse(i.ToString()));
Console.WriteLine($"Count of odd digits: {number.Count(i => i % 2 == 1)}");
Console.WriteLine($"Count of even digits: {number.Count(i => i % 2 == 0)}");
}
}
}