Assignment!!! Help

need some to write a program that accepts a number and prints out the same number in reverse hint 12345 to be 54321 help please!!!!!

Comments

  • [code]#include
    void main()
    {
    int nk=12345;
    for(;nk>0;nk/=10)
    printf("%d",nk%10);
    printf("
    ");
    }
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion