Programing2

Closed
empot Posts 5 Registration date Monday June 21, 2010 Status Member Last seen July 8, 2010 - Jul 7, 2010 at 09:16 PM
empot Posts 5 Registration date Monday June 21, 2010 Status Member Last seen July 8, 2010 - Jul 8, 2010 at 08:37 AM
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);
}
0
empot Posts 5 Registration date Monday June 21, 2010 Status Member Last seen July 8, 2010
Jul 8, 2010 at 08:37 AM
the program did not work.
0
empot Posts 5 Registration date Monday June 21, 2010 Status Member Last seen July 8, 2010
Jul 8, 2010 at 08:37 AM
thank you but the program did not work...
0