1)#include <iostream>
using namespace std;
int main() {
int a=1,b=1,c=0,d=1;
int otvet=a*(-1)+b^c-d;
cout<<otvet;
}
2)#include <iostream>
int a = 1, b = 1, c = 1, d = 1;
3)#include <iostream>
int a = 0, b = 0, c = 0, d = 0;
4)#include <iostream>
int a = 0, b = 1, c = 1, d = 0;
int otvet=-(a+b^c+(-b))+a^d;
5)#include <iostream>
int a = 1, b = 0, c = 0, d = 1;
6)#include <iostream>
7)#include <iostream>
Объяснение:
1)#include <iostream>
using namespace std;
int main() {
int a=1,b=1,c=0,d=1;
int otvet=a*(-1)+b^c-d;
cout<<otvet;
}
2)#include <iostream>
using namespace std;
int main() {
int a = 1, b = 1, c = 1, d = 1;
int otvet=a*(-1)+b^c-d;
cout<<otvet;
}
3)#include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0;
int otvet=a*(-1)+b^c-d;
cout<<otvet;
}
4)#include <iostream>
using namespace std;
int main() {
int a = 0, b = 1, c = 1, d = 0;
int otvet=-(a+b^c+(-b))+a^d;
cout<<otvet;
}
5)#include <iostream>
using namespace std;
int main() {
int a = 1, b = 0, c = 0, d = 1;
int otvet=-(a+b^c+(-b))+a^d;
cout<<otvet;
}
6)#include <iostream>
using namespace std;
int main() {
int a = 1, b = 1, c = 1, d = 1;
int otvet=-(a+b^c+(-b))+a^d;
cout<<otvet;
}
7)#include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0;
int otvet=-(a+b^c+(-b))+a^d;
cout<<otvet;
}
Объяснение:
#include <cmath>
using namespace std;
void main()
{
int n,sum=0;
float y,k=0;
cin >> n;
int *mass = new int[n];
for (int i = 0;i < n;++i)
{
cin >> mass[i];
}
for (int i = 0;i < n;++i)
{
if (mass[i] >0 )
{
k++;
y=pow(mass[i],2);
cout<<y;
sum+=mas[i]
}
}
system("pause");
}
2)#include <iostream>
#include <cmath>
using namespace std;
void main()
{
int s,p,r,day=0;
cin >> s>>p>>r;
float km=s;
while(r>km)
{
km+=km*p/100;
day++;
}
cout << " km = " << km << " day = " << day << endl;
system ("pause");
}