题库 C++/C语言题库 题目列表 阅读程序填写结果:#include<iostream> #includ...
问答题

阅读程序填写结果:

#include<iostream>
#include<string>
using namespace std;
int main()
{
string str;
cin>>str;
       for(int i=0;i<str.length();i++)
           {
           if(str[i]>='a' && str[i]<='z')
                str[i]=(str[i]-'a')+'A';
           else if(str[i]>='A' && str[i]<='Z') 13    
                str[i]=(str[i]-'A')+'a';
           else if(str[i]>='0' && str[i]<='9')
                str[i]=(str[i]-'0'+3)%10+'0';
       }
       cout<<str<<endl;
       return 0; 19    
}

题号

第1题

第2题

第3题

第4题


输入数据

These

N92

12+96

This is

a pen.

输出数据






题目信息
C++语言等级考试真题 2022年 一级 编程题
-
正确率
0
评论
113
点击