Click the Follow Button

C: Int and float Variable

 Here a is int variables. And b is a float. %d for int, %f is for float. Its mandatory.


 #include<stdio.h>


int main()
{
    int a = 3;
    float b = 7;
    printf(" the two numbers are %d %f.\n", a, b);
    return 0;
}

Comments

Popular Posts

TIC - TAC - TOE

Prime and not prime number

do_while loop is to do something again and again