#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char operation[25], *afterFirst;
double first;
scanf("%25s", operation);
first = strtod(operation, &afterFirst);
printf("%d",first);
return 0;
}
I would like to first = 4545,256 when I type eg. lkor4545,256+ 5. How to do this? Could you help me?
I compile program with Digital Mars 8.42 in MS Windows Server 2008. I am creating program to add, substrack, multiply and devide one number by another (simple calculator).


Sign In
Create Account

Back to top









