C programing software : Turbo c Ver. 2 Borland
Write a program thet accepts any number from the keyboard and tells you whether it is a non negative interger .the number should be sent to the function int_test (),which returns either value or -1 if the number is negative / zero .If it is non negative but not an interger .Inputs should continue until a zero is input
Function and variable
Main()
input from keyboard
interger Return from function
Int _test()
value from main()
result Value to return
OUTPUT
Your number:48
The number is :48
Your number :-14.3
The number is negative
Your number :12.345
The number is not an interger
Your number :0
My assigment due in 1 week time
C PROGRAMING HELP?
Are you asking us to do ALL your homework for you?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment