fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. char znak;
  7.  
  8. for (int i = 48; i <= 126; i++)
  9. {
  10. znak = i;
  11. cout << znak << " "; // Print character
  12. if (i % 16 == 15)
  13. cout << endl; // Print newline after every 16 characters
  14. }
  15. cout << endl; // Final newline
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
0 1 2 3 4 5 6 7 8 9 : ; < = > ? 
@ A B C D E F G H I J K L M N O 
P Q R S T U V W X Y Z [ \ ] ^ _ 
` a b c d e f g h i j k l m n o 
p q r s t u v w x y z { | } ~