Răspuns in Pascal:
var a, b;
Begin
writeln('A: '); readln(a);
writeln('B: '); readln(b);
if a = b then writeIn('Da'); else writeIn('Nu');
End.
Răspuns in C++:
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
cout<<"a = ";
cin>>a;
cout<<"b= ";
cin>>b;
if(a = b)
{
cout<<"Da";
}
else
{
cout<<"Nu";
}
}
Sper ca te-am ajutat!