Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* http://www.cplusplus.com/reference/cstdio/printf */
- /* %[flags][width][.precision][length]specifier */
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int main(){
- unsigned long long index = 1;
- unsigned long rr[1000000] {0};
- unsigned long cc[1000000] {0};
- unsigned long long sum;
- while ( index != 10000000000000) {
- rr[index]= index+100;
- cc[index]= index+200;
- sum += (rr[index] * cc[index]);
- printf ("%-*lu %-*lu %-*llu\n", 10, rr[index],10, cc[index],30, sum);
- ++index;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement