monoteen

0606#2

Jun 5th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #pragma warning (disable:4996)
  3.  
  4. int main(void)
  5. {
  6.     int i, hap = 0;
  7.  
  8.     for (i = 1; i <= 100; i++)
  9.     {
  10.         hap = hap + i;
  11.     }
  12.  
  13.     printf("1에서 100까지의 함 : %d\n", hap);
  14.    
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment