#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
int a = 0, b = 0;
do {
printf("请输入一个整数:");
scanf("%d", &a);
if (a < 0)
{
printf("该整数为负数!\n");
}
else if (a > 0)
{
printf("该整数为正数!\n");
}
else
{
printf("该整数为0\n");
}
printf("想再来一次吗铁汁?再来--1/不了--2>>");
scanf("%d", &b);
} while (b == 1);
printf("那下次再见啦铁汁!");
return 0;
}
标签:铁汁,入门,int,scanf,练习,整数,else,printf From: https://blog.51cto.com/u_15866017/5947987