Advertisement
Yousuf1791

1-100 পর্যন্ত যোগ করার প্রোগ্রাম

Nov 30th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | None | 0 0
  1. <?php
  2.  
  3. $sum = 0;
  4. for ($i=1; $i <=100 ; $i++) {
  5.     $sum += $i;
  6. }
  7.  
  8. echo "Sum from 1-100 is $sum";
  9.  
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement