[ create a new paste ] login | about

Link: http://codepad.org/CfzeBU0W    [ raw code | output | fork ]

C++, pasted on Mar 1:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream.h>
using namespace std;
int main()
{
    char word[11]="C Language";
    for (int i = 0; i < 11; i++)
    {
        if (word[i] >= 'A' && word[i] <= 'Z') word[i] -= 'A' - 'a';
    }
    cout << word;
    return 0;
}


Output:
1
c language


Create a new paste based on this one


Comments: