Example
#include <stdio.h> //Function Prototypeint TestFunction( float x);//Macros#define MACRO 0void main(){// declare variablesint ij;int ik;float fx;float fy;//Initialize Variablesij = 0;ik = 1;fx = 0;fy = 2;//print out variablesprintf("ij is: %i \n", ij);printf("ik is: %4i \n", ik);printf("fx is: %f \n", fx);printf("fy is: %5.2f \n", fy);//exploring castfx = (float) ik;ij = (int) fy;//let's print to check it outprintf("fx is: %f \n", fx);printf("ij is: %i \n", ij);//reading data at run timeprintf("Give me an int: \n");scanf("%d",&ij);printf("Give me a float: \n";scanf("%f",&fx);//Let's try some mathik = ij*2;ik = ik+1;fy = fx/10;printf("debug: fy is: %f",fy);fy = fy +ij;ik= ij/ik;fy=5.5;//A function callij = TestFunction(fy);printf("the function returned: %i \n", ij);//While Loopij = 0;ik=0;//set while and exit condition while(ij<=6) { //stuff to repeat while true ik =ik+1; printf("I ran %i times",ik); ik=ik+1; //update while loop condition ij=ij+2;}//This is the endprintf("ij is: %i \n", ij);printf("ik is: %4i \n", ik);printf("fx is: %f \n", fx);printf("fy is: %5.2f \n", fy);printf("Program Ended\n\n");//If Elseif(MACRO){ printf("hello\n");}else{ printf("byeee!\n");}}int TestFunction(float x){//Declare some variablesint a;float b;//Initialize variablesa=0;b=0;// Do some math and other stuffa = (int) x;b = (float) a;b=b*2;b=b+1;a=b/a;//return a valuereturn a;}