• 2023-05-245.24
    #include<stdio.h>voidmain(){longinta,b,c;printf("Pleaseenteraoptionalfraction(a/b):");scanf("%ld%ld",&a,&b);printf("Itcanbedecomposedto:");while(1){if(b%a)c=b/a+1;else{c=b/a;a=1;}if(a==1){printf("
  • 2022-11-27q4
    #include<stdio.h>int main(){ int n,m,i,j; scanf("%d%d",&n,&m); for(i=0;i<n;i++){for(j=0;j<m;j++){if('A'+j-i<'A')printf("%c",'A'-j+i);elseprintf("%c",'A'+j-i);
  • 2022-10-0610.6开启博客的第一天
    敲的第一个完整代码求两个数的最大值#include<stdio.h>intmain(){int num1=10;intnum2=20;if(num1>num2)printf("较大值是:%d\n",num1);elseprintf("较大值是:%d\n",num