Var n,m:longint;
Begin
Read(n,m);
Write((n mod m)*(m mod n)+1)
End.
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
switch (a%2){
case 0:
{
cout<<"Yes";
break;
}
default:
cout<<"No";
}
cin.get();
cin.get();
return 0;
}<span>
</span>
Var ar:array[1..10] of integer;
min,mini,i:integer;
begin
randomize;
min:=2147483647;
writeln('Array:');
for i:=1 to 10 do
begin;
ar[i]:=random(100);
write(ar[i]:4);
if ar[i]<min then
begin;
min:=ar[i];
mini:=i;
end;
end;
for i:=mini to 9 do
ar[i]:=ar[i+1];
writeln;
writeln('Final array:');
for i:=1 to 9 do
write(ar[i]:4);
<span>end.</span>
<span>a = int(input("a = "))
b = int(input("b = "))
s = <span>0
</span>if a >b<span>:
</span> for i in range(b,a+1)<span>:
</span> s +=i
print(s)
a = 14
b = 1
105</span>