2 solutions

  • 1
    @ 2026-3-8 14:59:54
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        char n;
        cin>>n;
        if ('A'<=n && n<='Z'){
        	cout<<"upper case";
    	}
    	if ('a'<=n && n<='z'){
    		cout<<"lower case";
        }
        return 0;
    }
    • 0
      @ 2025-8-18 15:36:32
      #include<bits/stdc++.h>
      using namespace std;
      char n;
      int main(){
      	cin>>n;
      	if(n>='A'&&n<='Z'){
      		cout<<"upper case";
      	}else{
      		cout<<"lower case";
      	}
      	
      	return 0;
      }
      
      • 1

      Information

      ID
      15
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      (None)
      # Submissions
      312
      Accepted
      102
      Uploaded By