0% found this document useful (0 votes)
32 views3 pages

PHP 3

Uploaded by

HARSH MAGHNANI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

PHP 3

Uploaded by

HARSH MAGHNANI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
© hitp/Aocalhost/harsh_pho/exp3‘.php First 30 Even Numbers using(for,while,do-while looping statement) for loop:2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40.42 44 46 48 50 52 54 56 58 60 wihile loop:2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 do-while Loop:2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58.60 (Created By Harsh Maghnani © htto://localhost/harsh_php/exp3.2.php For Loop Example 10987654321 (Created By Harsh. Maghnani © hitp/ocathost/harsh_php/exp3_3.php For Each Loop Example 12345 (Created By Harsh. Maghnani © hitp//ocathost/harsh_php/exp34.php While and do-while Loop Example while loop:1 2345678910 do-while Loop:109 87654321 (Created By Harsh. Maghnani © htp/ocathost/harsh_php/exp3_5.php Even-Odd Numbers Between 1-50 Lis odd 2 is even Bis odd 4is even 5 is odd 6 is even Tis odd 8 is even 9 is odd 10 is even 11 is odd 12 is even 13 is odd 14 is even IS is odd 16 is even 17 is odd 18 is even 19 is odd 20 is even Created By Harsh Maghnani © hitp/focathost/harsh_php/exp3_6.php pyramids of star/pattern Ast Pattern: oe sense 2nd Pattern: 55355 333 2 (Created By Harsh. Maghnan! oO http://localhost/harsh_php/exp3_7.php_ ‘Number=12345 ‘Sum of digit=15, (Created By Harsh Maghnant

You might also like