Skip to content

Instantly share code, notes, and snippets.

@AmanSinghBhogal
Last active January 1, 2019 10:03
Show Gist options
  • Save AmanSinghBhogal/e8f5162780e0b38b611422ff12c23093 to your computer and use it in GitHub Desktop.
Save AmanSinghBhogal/e8f5162780e0b38b611422ff12c23093 to your computer and use it in GitHub Desktop.
#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