标签:orm str code else div std mat ring print
#include<stdio.h> #include<string.h> int main() { int a,b,c; int j; char buff[100]; char ss[100]; int n; scanf("%d%d",&a,&b); c=a+b; if(c<0) sprintf(buff,"%d",-c); else sprintf(buff,"%d",c); if(c<0) printf("-"); n=strlen(buff); for(int i=0;i<n;i++) { printf("%c",buff[i]); if((n-i-1)%3==0&&(n-i)>3) printf(","); } }
标签:orm str code else div std mat ring print
原文地址:http://www.cnblogs.com/yyb0627/p/6501399.html