Я считал в паскале .Ответ :5
<u><em>Pascal:</em></u>
var n,a,s:longint;
begin
repeat
write ('N = ');
readln(n);
until n in [10..99];
write ('A = ');
readln(a);
s:=0;
while n<>0 do
begin
s:=s+n mod 10;
n:=n div 10;
end;
if s>a then writeln ('YES') else writeln ('NO');
readln;
end.
<em><u>C++:</u></em>
#include <iostream>
using namespace std;
int main()
{
int a,n,s = 0;
do
{
cout <<"N = ";
cin >>n;
}
while (n<10 || n>99);
cout <<"A = ";
cin >>a;
while (n!=0)
{
s+=n\%10;
n/=10;
}
if (s>a)
cout <<"YES" <<endl;
else cout <<"NO" <<endl;
return 0;
}
На паскале точно все запятые там и ; не помню но как-то так вот.
var a, b, c, d
begin
a:=2;
b:=3;
c:=4;
if a>7 then d:=b + c
writeLn (d<span>);</span>
end.
Var a,x,b:integer;
begin
for a:=20 to 100 do
if a mod 3 = 0 then x:=x+a;
writeln(x);
<span>end.</span>
Список. Это перечень значений, из которых следует выбрать одно нужное.