TOC666

פתרון מבחן 1

Feb 23rd, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. void ex1()
  2. {
  3. int i=0,sum=0,help=1,ten=1,help1=1;
  4. for (i=1;i<10;i++){
  5. sum += help1;
  6. ten *= 10;
  7. help += ten;
  8. help1 = help * (i+1);
  9. } cout<<sum;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment