#include <iostream> using namespace std; int main() { int a, b; cin >> b; if (b > 100){ cout << "OUT OF RANGE"; } else { for (int a = 1; a <= b; a++){ cout << "." << "0" << a; } } }
#include <iostream> #include <iomanip> using namespace std; int main() { int i = 1; int j = 17; cout << std::setw(2) << std::setfill('0') << i << "," << j << std::endl; return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)