Program to convert float into integer type.

//Conversion of  a = 2.333333 into int type.

 #include<stdio.h>

#include<math.h>


int main()


{


int a = (int)2.333333;

printf("%d", a);

return 0;

}

Comments

Popular posts from this blog

Write a program to check if a number is prime or not.

write a program (keep taking numbers as input from user until user enters an Odd number)

write a program to print all the odd numbers from 1 to 100.