#include <stdio.h>
int main (void)
{
int n, triangularNumber;
triangularNumber = 0;
for (n = 1; n <= 200; n = n + 1)
triangularNumber = triangularNumber + n;
printf ("The 200th triangular number is %i/n", triangularNumber);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266589.html