qbasik:
input a
input b
if a> 0 and b> 0
then
s=a+b
print s
print " "
s=a*b
print s
else
s=a-b
print s
print " "
s=a/b
print s
end
c/c++ :
#include < cstdlib> #include < iostream> using namespace std; int main(){
int a,b;
cin> > a;
cin> > b;
if(a> 0 & & b> 0)
{
cout< < a+b< < " "< < a*b< < endl;
}
else
{
float c=a/b;
cout< < a-b< < " "< < c< < endl;
} system("pause"); return 0; }
Поделитесь своими знаниями, ответьте на вопрос: