Variable in c programming with example -99webcode

Variable in c programming  with example  

Variable in c programming  with example

 

//int ,float ,char is data type

//a,b,c are variable 

#include<stdio.h>

int main()

{

int a=10; //here we are initializing 10 to a variable

        float b=10.5 ; //here we are initializing 10.5 to b variable

char c ='s';//here we are initializing s to c variable

  printf("value of the a is %d \n",a);

        printf("%f \n",b);

printf("%c \n",c);

printf("sum of a+b %f \n",a+b);//addition ot two variable a and b



}


Post a Comment (0)
Previous Post Next Post