Increasing sequence with given GCD | Function to print the required sequence ; Driver Code
< ? php function generateSequence ( $ n , $ g ) { for ( $ i = 1 ; $ i <= $ n ; $ i ++ ) echo $ i * $ g . " ▁ " ; } $ n = 6 ; $ g = 5 ; generateSequence ( $ n , $ g ) ; ? >