I am supposed to do this assignment stated:
Write a C Program to have a char variable. Use printf to print “Press any Key!”. Make sure to print the double quotes as above. Use getch() to input the key pressed. Use puts to Output “You pressed” and putch to output the actual character.
this is what I have done so far
Code:#include <conio.h> #include <stdio.h> main(void){ char c; printf("press any key!\n"); getch(); puts("you pressed\n"); }



LinkBack URL
About LinkBacks


