#include <iostream>
using namespace std;
int main(){
String str;
int count=0;
cin>>str;
for(int i=0;i<str.length();i++){
if(str.at(i)==0||str.at(i)==1||str.at(i)==2||str.at(i)==3||str.at(i)==4||str.at(i)==5||str.at(i)==6||str.at(i)==7||str.at(i)==8||str.at(i)==9){
count++;
}
}
cout<<count;
}
Разные программы, данные...
вот такая вот таблица истинности и схема
var
i, n, y: integer;
begin
write ('x= ');
readln (x);
if (x>0) then
y:=sin(2*x)
else
y:=1-(2*(sin(2*x)));
write(y);
end;
<span>0.001
</span><span>Решение должно иметь от 20 до 5000 символов</span>