Last active
January 1, 2019 10:03
-
-
Save AmanSinghBhogal/e8f5162780e0b38b611422ff12c23093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream.h> | |
#include<conio.h> | |
#include<ctype.h> | |
void main() | |
{ | |
clrscr(); | |
cout<<"Converting Sentence to Capital Letters."<<endl; | |
char str[100]; | |
cout<<"Enter the Sentence:"; | |
cin.getline(str,100); | |
cout<<"Sentence after Convering:"<<endl; | |
for(int i=0;str[i]!='\0';++i) | |
{ | |
char a; | |
a=toupper(str[i]); | |
cout<<a; | |
} | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment