精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 求s=a+aa+aaa+aaaa+aa...a的值,其中a是一個數(shù)字.例如2+22+222+2222+22222(此時

    求s=a+aa+aaa+aaaa+aa...a的值,其中a是一個數(shù)字.例如2+22+222+2222+22222(此時
    這是我寫的代碼,但是當(dāng)s=2+22+222,時得出266.
    #include"stdio.h"
    main()
    {
    long s=0;
    int a,N,i;
    printf("Enter the a and N:\n");/*N是相加的個數(shù),當(dāng)N=5時,代 表最大數(shù)是5*/
    scanf("%d%d",&a,&N);
    for(i=1;i
    其他人氣:592 ℃時間:2020-03-27 06:31:56
    優(yōu)質(zhì)解答
    第二次循環(huán)時,a=22*10+22=242.稍改一下#include"stdio.h" main() { long s=0; int a,b,N,i; printf("Enter the a and N:\n");/*N是相加的個數(shù),當(dāng)N=5時,代 表最大數(shù)是5*/ scanf("%d%d",&a,&N);b=a; for(i=1;i...
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版