Viết chương trình chuyển đổi ký tự thường thành ký tự Hoa
Code:
#include <bits/stdc++.h>
#include <string.h>
using namespace std;
int main()
{
char *s = new char[100];
gets(s);
for(int i = 0 ; i < strlen(s) ; i++)
putchar(toupper(*(s+i)));
return 0;
}