DAU 30 DE PUNCTE!!!
VA ROGGGG
![DAU 30 DE PUNCTEVA ROGGGG class=](https://ro-static.z-dn.net/files/d06/7d506bcc0049462d77671342fdf93460.jpg)
Răspuns:
3.#include <iostream>
using namespace std;
int main()
{
int n = 0;
cin >> n;
cout << n;
return 0;
}
4.#include <iostream>
using namespace std;
int main()
{
int x = -1, maxim = -1;
while( x != 0 )
{
cin >> x;
if( x > maxim )
{
maxim = x;
}
}
cout << maxim;
return 0;
}
Explicație: