Ticker

6/recent/ticker-posts

Program to show use of getchar

#include<stdio.h>
void main(){
    char a;
    printf("Enter a letter or number or any character!\n");
    a=getchar();
    printf("the character you entered was : ");
    putchar(a);
    
}




Reactions

Post a Comment

0 Comments