Programing2

[Closed]
Report
Posts
5
Registration date
Monday June 21, 2010
Status
Member
Last seen
July 8, 2010
-
Posts
5
Registration date
Monday June 21, 2010
Status
Member
Last seen
July 8, 2010
-
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 reply

main()
{
printf("enter the two no");
scanf( "%d%d", c);
c=a*b
printf( "%d",a);
}
Posts
5
Registration date
Monday June 21, 2010
Status
Member
Last seen
July 8, 2010

the program did not work.
Posts
5
Registration date
Monday June 21, 2010
Status
Member
Last seen
July 8, 2010

thank you but the program did not work...