欢迎来到知识库小白到大牛的进阶之路

当前位置 > mips编程题st语言编程题经典100例

  • 编程题

    编程题

    #include "stdio.h"#include "math.h"int main(){double a,b,c;double s,p;printf("输入三角形三边:");scanf("%lf%lf%lf",&a,&b,&c);//用海伦公式计算p=(a+b+c)/2;s=sqrt(p*(pa)*(pb)*(pc));printf("三角形面积为:%lf",s);}

    2024-08-14 网络 更多内容 546 ℃ 432
  • 编程题

    编程题

    大写字母和小写字母的ASSCII值差32,利用ASSCII值来转换。小写字母的ASCII码比大写字母的ASCII码大32。比如,大写字母A的ASSCII值是65,那么zhi小写a就是65+32=97。依次类推d其他字母。如果用C++来写:#include void main(){ char c,c1; cin>>c;//从键盘输入字母c1=c+32;//转换c...

    2024-08-14 网络 更多内容 812 ℃ 326
  • 计算机编程题

    计算机编程题

    int i = 3; for (int j = 0; j <= i; j++) { Console.WriteLine("********"); } Console.ReadKey();

    2024-08-14 网络 更多内容 886 ℃ 963
  • 一个编程题

    一个编程题

    第一题的程序有问题,你输入的是一个字符串,要判断里面每=一=个字符是否是元音字符,要用到循环来依次判断,单独的一个,只能判断一个字符 第二题: Private Sub Command1_Click() Dim mark!, aver!, i%, max1!, min1! aver = 0 For i = 1 To 7 mark = InputBox("输入第" & i & "位评委的...

    2024-08-14 网络 更多内容 863 ℃ 912
  • 做几道程序编写题

    做几道程序编写题

    那方面的,c++,.net ,还是JAVA?

    2024-08-14 网络 更多内容 826 ℃ 133
  • 电脑编程题 pascal

    电脑编程题 pascal

    var i,a:integer; begin i:=1; while i<=20 do begin read(a); if a=10 then begin write(i);break;end; i:=i+1; end; if a<>10 then write('0'); end.

    2024-08-14 网络 更多内容 340 ℃ 910
  • 一道编程题

    一道编程题

    用字符串来做这道题,程序如下: Var m:int64; i,j,n:longint; s:string; Begin readln(n); For i:=1 to n do Begin s:=''; str(i,s); m:=m+length(s); End; writeln(m); End.

    2024-08-14 网络 更多内容 621 ℃ 128
  • 请教一道微机的编程题

    请教一道微机的编程题

    #include <stdio.h> #include <string.h> int main(){ int ind,count=0; char *str="ADEFAEAC"; int length = strlen(str); for(ind=0;ind<length1;ind++){ if(str[ind]=='A' && str[ind+1]=='E'){ count++; } } printf("AE=%d\n",count); getchar(...

    2024-08-14 网络 更多内容 764 ℃ 313
  • 计算机编程题

    计算机编程题

    公历闰年判定遵循的规律为: 四年一闰,百年不闰,四百年再闰. 公历闰年的简单计算方法(符合以下条件之一的年份即为闰年) 1。能被4整除而不能被100整除。(如2100年就不是闰年) 2。能被400整除。 (能被100整除但是不能被400整除的,不是闰年.) public int isRun(int y){ if((y % 400 ...

    2024-08-14 网络 更多内容 574 ℃ 660
  • 程序制作题

    程序制作题

    #include<stdio.h> #include<string.h> char *proc(char str[][100],int N) { #int i; int minlen = strlen(str[0]),minpos=0; #for(i=1;i<N;i++) ##if(minlen>strlen(str[i])) minpos = i; #return str[minpos]; } void main() { #char str[20][100],tmpstr[100]; #int i=0; #while(scanf("%s&quo...

    2024-08-14 网络 更多内容 750 ℃ 814
新的内容
标签列表