Programing2

Closed
empot Posts 5 Registration date Monday 21 June 2010 Status Member Last seen 8 July 2010 - 7 Jul 2010 à 21:16
empot Posts 5 Registration date Monday 21 June 2010 Status Member Last seen 8 July 2010 - 8 Jul 2010 à 08:37
Hello, write a program separete() that separetes a number into three parts: a sign(+, - , or blank), a whole number magnitude and a fractional part. develop a program that test the separete() function.

sample run:
input a number:: -3.44 enter
result:sign: -
integer part:3.0
fractional part:0.44



1 response

main()
{
printf("enter the two no");
scanf( "%d%d", c);
c=a*b
printf( "%d",a);
}
empot Posts 5 Registration date Monday 21 June 2010 Status Member Last seen 8 July 2010
8 Jul 2010 à 08:37
the program did not work.
empot Posts 5 Registration date Monday 21 June 2010 Status Member Last seen 8 July 2010
8 Jul 2010 à 08:37
thank you but the program did not work...