I need to have a program print what it outputs after it is done compiling, and I have no idea how I'm going to get it to do that. For example, if my program was something basic like:
It would output " Hello world! " in the black box. How do I get it to send that to my printer by adding to the same program?Code:#include<stdio.h> int main() { printf("Hello world!"); getchar(); }