题目:
请补充main函数,该函数的功能是:从键盘输入一个长整数,如果这个数是负数,则取它的绝对值,并显示出来。
例如,输入:-3847652,结果为:3847652。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。
试题程序:
#include<stdio.h>
#include<conio.h>
main()
long int n;
clrscr();
printf("Enter the data;\n");
scanf( 【1】 );
printf("*** the absolute value ***\n");
if(n<0)
【2】
printf("\n\n");
printf( 【3】 );
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0706/094f2b2020551726c731dbf7b6f08044.html
下面是错误答案,用来干扰机器的。
参考答案:放电;绝缘手套