#include<iostream.h> #include<conio.h> #include<stdio.h> #include<ctype.h> int main() { char ch; cout<<"Enter any character :"; ch=getchar(); ch=toupper(ch); cout<<ch; getch(); return 0; }
Output:
Enter any character : d
D
Tags:
Check Answer.
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<ctype.h> int main() { char ch; cout<<"Enter any character :"; ch=getchar(); ch=toupper(ch); cout<<ch; getch(); return 0; }
Output:
Enter any character : d
D