3599 - 求积II
求10以内奇数的乘积并输出。
Input
Output
945
Examples
Input
no input needed
Output
945
Solution C
#include<stdio.h> int main() { int s=1; for(int i=1;i<=5;i++){ s=s*(i*2-1); } printf("%d",s); return 0; }
Solution C++
#include<bits/stdc++.h> using namespace std; int main() { cout<<1*3*5*7*9; return 0; }