My omnium-gatherom of scripts and source code.
1#include <iostream>
2#include <string>
3
4int main(int argc, const char **argv) {
5 if (argc == 3) {
6 const long double mult1 = std::stold(argv[1]);
7 const long double mult2 = std::stold(argv[2]);
8 std::cout << mult1 * mult2 << std::endl;
9 } else {
10 std::cout << "mult: Please provide two decimal-number arguments."
11 << std::endl;
12 return 1;
13 }
14
15 return 0;
16}