SHARE
TWEET

Untitled

a guest Oct 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.           int main() {
  3.               int i = -1;
  4.               int sum = 1000;
  5.               printf("nThe value of sum to start is:  %d", sum);
  6.               while (i <= 0) {
  7.                   i = i - 1;
  8.     sum = sum + 1; }
  9.              if (sum == 0)
  10.                   printf("nSum is zero");
  11.               if (sum < 0)
  12.                   printf("nSum is less than zero");
  13.               if (sum > 0)
  14.                   printf("nSum is greater than zero");
  15.               printf("n");
  16.           }
RAW Paste Data
Top