题解 2778: 判断数正负

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); if(n>=0) { if(n>0) { printf(……

2778: 判断数正负

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int N;    scanf("%d",&N);    if(N>0)    printf("posit……

2778: 判断数正负(if语句的运用)

##2778:判断数正负主要就是if语句的运用,比较简单,见代码:```c#includeintmain(){intn;//int的取值范围2147483648到2147483647//够用了,所以就不写longlong了//顺便说一下longlong的取值范围是-922337203685477580

判断数正负

摘要:解题思路:注意事项:注意不要超时。参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n);    if(n>0)    {     ……

判断数正负

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int N; scanf("%d",&N);  if(N>0){ printf("positive"); ……