Posts

Showing posts from January, 2025

Write a program to addition, substraction, multiplication, division, modulas division of two numbers using static variable in C Programming Language and also implement it in PHP

Image
Write a program to addition, substraction, multiplication, division, modulas division of two numbers using static variable in C Programming Language and also implement it in PHP. Using C Programming Language STEP 1: Before starting just let me tell you where you can code C programming and runs the programming easily is Programiz C Online Compiler. Just go to google and type C Compiler and open the first link "Online C Compiler - Programiz". STEP 2: Once the Programiz C Online Compiler window gets open here you can type your C programming code and after writing the code here you can run the program code and you will be able to see the output. STEP 3: In my below C programming code I have taken two variable names and its value and variable type. So, here my variable type is integer (int) and I have taken two variable name i and j whose value is i=100 and j=50. After that I have print the value by using printf of i and j in addition as i+j, subtraction  as i-j, multiplication as...