Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int OnInit()
- {
- //---
- int i = 0;
- int sum = 0;
- string str = "";
- for ( i = 1; i <= 10; i++)
- {
- sum = sum + i;
- if ( i != 1 )
- str = str +" + "+ IntegerToString(i);
- else
- str = IntegerToString(i);
- Print(str + " = " + sum);
- }
- //---
- return(INIT_SUCCEEDED);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement