task1.3
编写程序,在标准输出上打印“hello world!”:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12f1b }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000 }
span.s1 { color: #78492a }
span.s2 { }
span.s3 { color: #ba2da2 }
span.s4 { color: #000000 }
span.s5 { color: #703daa }
span.s6 { color: #272ad8 }
#include <iostream>
int main()
{
std::cout << "Hello, World!\n";
return 0;
}
task 1.4
编写程序,实现两个数的乘积:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12f1b }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000 }
span.s1 { }
span.s2 { color: #78492a }
span.s3 { color: #ba2da2 }
span.s4 { color: #703daa }
span.s5 { color: #d12f1b }
span.s6 { color: #3e1e81 }
span.s7 { color: #272ad8 }
#include <iostream>
int main()
{ int i,j;
std::cin>>i;
std::cin>>j;
std::cout << "the product of "<< i<<" and "<<j <<"is "<<i*j<<std::endl;
return 0;
}