#include < stdio.h> void main() { int num, sum = 0; for (num = 1; num <= 50; num++) { sum = sum + num; } printf("Sum = %4d\n", sum); }
Sum = 1275
Post a Comment
No comments:
Post a Comment