aa******@gmail.com wrote:
1: Write a program that asks the user to input an integer value and
print it in a reverse order
Sample Output
Enter any number 65564
Reverse of 65564 is 46556
#include <stdio.h>
int main(void)
{
puts("Please input an integer value and print it in a reverse order\n"
"Sample Output\n"
"Entry any number 65564\n"
"Reverse of 65564 is 46556");
return 0;
}
OK, that's done. The above asks the user to input a value and print it
as requested. It might be more helpful if it told the user where to
input the value and where to print it, but that was not in the
specification.
2: Write a program that takes a string as an input and print it in
reverse order.(don't use bulit-in/library function).
Sample Output
Enter any string: i m Kashif
Reverse of
i m kashif
is
fihsak m i
You can't write a program to take inpput from a user and produce output
without using library functions (even getc/putc might use library
functions).
If you want code written for you then my current out of hours rate is
500UKP per hour or part there of with a minimum charge of 5000UKP. To
get the work done in my normal working hours you will have to contact my
employer, however I'm already booked up till well in to next year so
that would probably not do you.
In other words, if you don't even try to do your homework why should we
do it for you? I certainly don't want people passing courses on that
basis since I might have to deal with their inability to program if they
get a job later!
--
Flash Gordon, living in interesting times.
Web site -
http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc