C:大写字母转小写字母;
#include <stdio.h>
int main(){
char ch;
printf("Please Type a char:n");
scanf("%c",&ch);
if(ch>='A'&&ch<='Z')
ch=ch+32;
printf("%c",ch);
return 0;
}
#include <stdio.h>
int main(){
char ch;
printf("Please Type a char:n");
scanf("%c",&ch);
if(ch>='A'&&ch<='Z')
ch=ch+32;
printf("%c",ch);
return 0;
}
#include <stdio.h>
int main(){
int i, j;
for(i=1;i<=9;i++){
for(j=1;j<=i;j++){
printf("%d%d=%dt",j,i,ij);
}
printf("n");
}
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main(void){
float m, i=0, o=0;
char r='y';
printf("|--------------|n");
printf("|--简易计算器--|n");
printf("|--------------|n");
printf("|---1.加法-----|n");
printf("|---2.减法-----|n");
printf("|---3.乘法-----|n");
printf("|---4.除法-----|n");
printf("|---5.退出-----|n");
printf("|--------------|n");
while(r=='y'||r=='Y'){
printf("Please Type Mode(1-4)n");
scanf("%f",&m);
printf("Please Type Two Numbersn");
scanf("%f %f",&i,&o);
if(m==1) printf("%.2f+%.2f=%.2f",i,o,i+o);
else if(m==2) printf("%.2f-%.2f=%.2f",i,o,i-o);
else if(m==3) printf("%.2f%.2f=%.2f",i,o,io);
else if(m==4) printf("%.2f/%.2f=%.2f",i,o,i/o);
printf("是否再次运算?y/Y继续,其他字符取消"n");
r=getch();
}
return 0;
}
#int <iostream>
int main(){
using namespace std;
cout << "HelloWorld" << endl;
return 0;
}
Version()
ReduceBy2
FadeOut