#include<stdio.h>
int main()
{
int num = 255;
num = num / 10;
char buf[5];
itoa(num, buf,10);
printf("%s", buf);
return 0.
}
I am trying to divide the integer number by 10 but I am getting a solution of 25 ( I should get 25.5). Later I am converting this into string by integer to ASCII function. I have problem to divide that number by 10.