PHP program to demonstrate the use of printf() function

bookmark

<?php
    //PHP program to demonstrate the 
    //use of printf() function.
    
    $A = 10;
    $B = 20;
    
    $C = $A + $B;
    printf("Sum is: %d",$C);
?>


Output
Sum is: 30