fork download
  1. #include <stdio.h>
  2. int main(){
  3. int a=2;
  4. int b=3;
  5. int c;
  6. c=a+b;
  7. while(c>=-a*b){
  8. printf("%d\n",c);
  9. c--;
  10. if (c<-1){
  11. printf("it is a negative integer\n");
  12. }
  13. else{
  14. if (c=0){
  15. printf("it is neither negative nor positive integer\n");
  16. }
  17. else{
  18. printf("it is a positive integer\n");
  19. }
  20. }
  21. }
  22. }
Success #stdin #stdout 0.04s 25752KB
stdin
Standard input is empty
stdout
#include <stdio.h>
int main(){
    int a=2;
    int b=3;
    int c;
    c=a+b;
    while(c>=-a*b){
        printf("%d\n",c);
        c--;
        if (c<-1){
            printf("it is a negative integer\n");
        }
        else{
            if (c=0){
            printf("it is neither negative nor positive integer\n");
            }
            else{
            printf("it is a positive integer\n");
            }
        }
    }
}