码迷,mamicode.com
首页 > 编程语言 > 详细

问题 1040: C语言程序设计教程(第三版)课后习题9.6

时间:2017-05-28 23:12:02      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:ble   txt   nbsp   .cpp   ati   text   教程   div   ifd   

/********************************************************************
@file     Main.cpp
@date     2017-05-28 21:57:02
@author   Zoro_Tiger
@brief    问题 1040: C语言程序设计教程(第三版)课后习题9.6
          http://www.dotcpp.com/oj/problem1040.html
********************************************************************/
#include <cstdio>

#define TEST
#undef  TEST

int main(int argc, const char* argv[])
{

#ifdef TEST
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif

    //!输入
    float fNum = 0;
    scanf("%f", &fNum);

    //!输出
    printf("%6.2f\n", fNum);
    printf("%6.2f %6.2f\n", fNum, fNum);
    printf("%6.2f %6.2f %6.2f\n", fNum, fNum, fNum);

    return 0;
}

 

问题 1040: C语言程序设计教程(第三版)课后习题9.6

标签:ble   txt   nbsp   .cpp   ati   text   教程   div   ifd   

原文地址:http://www.cnblogs.com/roronoa-zoro-zrh/p/6916815.html

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