December 13 topic 1

From , 3 Years ago, written in C, viewed 222 times.
URL https://pastebin.vip/view/57bafb2c
  1. #include <stdio.h>
  2. int main() {
  3.   int s = 0, k = 1;
  4.   while(k<=100){
  5.     if (k % 2 != 0)
  6.       s = s + k;
  7.     else
  8.       s = s - k;
  9.     k++;
  10.   }
  11.   printf("s=%d", s);
  12.   return 0;
  13. }

Reply to "December 13 topic 1"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website