Advertisement
Yousuf1791

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

Nov 30th, 2020
142
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.  
  5. for ($i=100; $i >= 1 ; $i--) {
  6.     $sum += $i;
  7. }
  8.  
  9. echo "Sum from 100 to 1 is $sum";
  10.  
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement