Star Patterns
C Program to Print an Character (Entered by the User)
C Program to Print an Character (Entered by the User)
#include <stdio.h> int main() { char x; printf("\n Enter x value:"); scanf("%c",&x); printf("\n Display Character: %c",x); return 0; }
Output:
Enter x value:p Display x value: p Process returned 0 (0x0) execution time : 1.902 s