1 solutions

  • 0
    @ 2025-11-5 17:21:01

    C :

    #include <stdio.h>
    
    int main()
    {
    	char str;
    	scanf("%c",&str);
    	printf("%c",(str>=65&&str<97)?str:str-32);
    	
    	return 0;
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    
    int main()
    {
    	char c,d;
    	cin>>c;
        d=(c>='a'&&c<='z')?c-32:c;
    	cout<<d<<endl;
    	return 0;
    }
    
    • 1

    Information

    ID
    18330
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By