Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Laboration 2, Assignment_2.cpp
- // Fabian Tjernström (fatj1700) 2018-11-21
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- int newLine = 0;
- for(int count = 32; count <= 127; count++) {
- newLine++;
- std::cout << std::left << std::setw(4) << count;
- std::cout << std::left << std::setw(2) << "=";
- std::cout << std::left << std::setw(4) << char(count);
- if(newLine % 6 == 0) {
- std::cout << std::endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment