AJ's Code blog

spoj solutions and other codes in python, C , C++

Monday, 11 February 2013

A Game with Numbers

// C code for 1419. A Game with Numbers Problem code: NGM

#include<stdio.h>
int main()
{
    int n;
    while (scanf("%d",&n)==1)
        (n%10)?(printf("1\n%d\n",n%10)):(printf("2\n"));
    return 0;
}
Posted by Coding man at 18:53 4 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C codes
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2014 (3)
    • ▼  November (3)
      • How things look like in BLL in ASP.NET
      • How things look like in DAL in ASP.NET
      • General things for ASP.NET project
  • ►  2013 (94)
    • ►  October (4)
    • ►  February (32)
    • ►  January (58)

About Me

Coding man
View my complete profile
Simple theme. Powered by Blogger.