Помогите пожалуйста переведите код из паскаля в с++

const
N=70;
var
a: array [1..N] of integer;
i, j , m: integer;
begin
for i:=1 to N do
readln(a[i])
m:=0;

for i:=1 to N do

if (a[i] mod 2 = 1) and (a[i] > 0) and ((m = 0) or (a[i] < m)) then

m:=a[i];

writeln(m);

end.​
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.