Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- char o;
- printf("enter the first letter of your name: \n");
- o = getchar();//we can also use scanf("%c",&0);
- printf("the first letter of your name is: %c",o);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement