码迷,mamicode.com
首页 > 其他好文 > 详细

aabb问题

时间:2017-11-03 14:11:34      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:log   a*   math   print   ++   ==   sqrt   include   code   

#include<stdio.h>
#include<math.h>
int main(){

    int a ,b , n;
    double m;
    for(a=1 ;a<9;a++){
        for(b=1;b<9;b++){
            n=a*1100+b*11;
            m=sqrt(n);
            if(floor(m+0.5)==m)
                printf("%d\n",n);
        }
    }
    return 0;
}

 

aabb问题

标签:log   a*   math   print   ++   ==   sqrt   include   code   

原文地址:http://www.cnblogs.com/itot/p/7777571.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!