Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.

Input Specification:

Each input file contains one test case. Each case occupies one line which contains an N (≤).

Output Specification:

For each test case, output in one line the digits of the sum in English words. There must be one space between two consecutive words, but no extra space at the end of a line.

Sample Input:

12345

Sample Output:

one five
 #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
char n[];
char str[];
char *m[]={"zero","one","two","three","four","five","six","seven","eight","nine"};
int temp,sum=,i=;
scanf("%s",n);
for(i=;i<strlen(n);i++){
temp=n[i]-'';
sum+=temp;
}
sprintf(str,"%d",sum);
int b=str[strlen(str)-]-'';
for(i=;i<strlen(str)-;i++){
int a=str[i]-'';
printf("%s ",m[a]);
}
printf("%s",m[b]);
return ;
}

最新文章

  1. caffe学习系列(2):训练和测试自己的图片
  2. CoreText 使用教程
  3. lagstash + elasticsearch + kibana 3 + kafka 日志管理系统部署 02
  4. OSGi 学习(一)
  5. poj1862---变形虫(贪心)
  6. 驱动:中断【2】中断处理程序、中断上下文中处理延时及一些函数的调用规则(调IIC中断驱动有感)
  7. mustache.js基本使用(一)
  8. Linux上SQL及MYSQL简单操作
  9. Mybatis-多对多
  10. GitHub趋势:Vue.js大有超过TensorFlow之势!
  11. SSM-Spring-08:Spring的静态代理初窥案例
  12. Ext 行统计有意思的实现.(js对象的循环, ext列的设置)
  13. 关于图片无法输出的问题使用ob_clean()
  14. Python flask+react+antd实现登陆demo
  15. oracle 函数 输入值,查询数据,返回相应处理结果
  16. 第七十九课 最短路径(Floyd)
  17. python - class类 (二) 静态属性/类方法/静态方法
  18. OO第一阶段总(休)结(养)分(生)析(息)
  19. ASP.NET Core2利用MassTransit集成RabbitMQ
  20. Flink的keyby延时源码

热门文章

  1. LeetCode 978. Longest Turbulent Subarray
  2. Linux系统硬盘扩容
  3. 事件类型(onchange)
  4. Nodejs仿Apache的部分功能
  5. 12-ESP8266 SDK开发基础入门篇--PWM,呼吸灯
  6. 3-开发共享版APP(接入指南)-设备接入说明:使用隐藏配置
  7. (4.1)打造简单OS-小实验[图形显示]
  8. 程序日志-应用程序-特定 权限设置并未向在应用程序容器 不可用 SID (不可用)中运行的地址 LocalHost (使用 LRPC) 中的用户 NT AUTHORITY\SYSTEM SID (S-1-5-18)授予针对 CLSID 为 {D63B10C5-BB46-4990-A94F-E40B9D520
  9. python使用ldap3进行接口调用
  10. Net core学习系列(六)——Net Core路由