{
  "question_id": 1089360,
  "question_title": "输出1~10的平方与平方根",
  "question_content": "![图片说明](https://img-ask.csdn.net/upload/202006/28/1593313257_732285.jpg)\n\n如图所示列出1~10，输出平方根和平方",
  "difficulty": "简单",
  "answer_id": 1295912,
  "answer_content": "#include <iostream>\n#include <cstdio>\n#include <algorithm>\n#include <math.h>\n#include <cstring>\n#include       <map>\n#include       <set>\nusing namespace std;\n\nint main()\n{\n\tdouble sum;\n\tdouble sq;\n\tfor(int i=1;i<=10;i++)\n\t{\n\t\tsum=i*i;\n\t\tsq=sqrt(i);\n\t\tprintf(\"%d %5.5f %12.2f\\n\",i,sq,sum);\n\t} \n\t\t  \n}",
  "tag_name": "c语言",
  "cpp": "#include <iostream>\n#include <cstdio>\n#include <algorithm>\n#include <math.h>\n#include <cstring>\n#include <map>\n#include <set>\nusing namespace std;\nint main()\n{\n\tdouble sum;\n\tdouble sq;\n\tfor(int i=1;i<=10;i++)\n\t{\n\t\tsum=i*i;\n\t\tsq=sqrt(i);\n\t\tprintf(\"%d %5.5f %12.2f\\n\",i,sq,sum);\n\t} \n}",
  "topic_link": "https://bbs.csdn.net/topics/600469843",
  "status": 0,
  "keywords": "数学运算",
  "license": "csdn.net",
  "notebook": {
    "cpp": "https://codechina.csdn.net/csdn/csdn-daily-code/-/jupyter/master/data/notebook/answer/ipynb/cpp/6.ipynb?type=file"
  },
  "notebook_enable": 1,
  "author": "qq_32760337"
}