首页 > 其他分享 >11.5.4

11.5.4

时间:2022-11-05 21:01:43浏览次数:45  
标签:10 return int 11.5 sum printf include

#include<stdio.h>

#include<math.h>

int an(int x,int y);

int main()

{

int a,n;

scanf("%d%d",&a,&n);

   an(a,n);

 

return 0;

}

int an(int x,int y)

{ int i,sum=0;

 

for(i=2;i<=y;i++)

{

x=x/pow(10,i-2)+x*10;

sum+=x;

 }  

printf("%d",sum+x%10);

 

 

 

 

return 0;

}

标签:10,return,int,11.5,sum,printf,include
From: https://blog.51cto.com/u_15758636/5826103

相关文章

  • ios AppStore 上架流程(Xcode11.5)
     AppStore上架流程前提已经注册苹果开发者账号登录开发者官网https://developer.apple.com/点击account进行登录 点击Certific......
  • ios AppStore 上架流程(Xcode11.5)
    AppStore上架流程前提已经注册苹果开发者账号登录开发者官网​​https://developer.apple.com/​​点击account进行登录点击Certificates,Identifiers&Profiles1.首先进......
  • 11.1 LAMP架构介绍 11.2 MySQL、MariaDB介绍 11.3/11.4/11.5 MySQL安装
     11.1LAMP架构介绍LAMP是Linux+Apache(httpd)+MySQL+PHP的简称•Linux:操作系统•Apache(httpd):WEB服务器软件,提供WEB服务•MySQL:关系型数据库用于存储数据(字符串)•......
  • 11.5面向对象的三大特性
    #面向对象三大特性:封装继承多态#广义得封装:#把方法和变量都封装在类中#比如人狗大战#规范创建对象#创建所有人得属性名都能一致#......