Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  xgn.cpp
Language: C/C++
Code:
#include <stdio.h>
int main()
{
int N,k=0,n;
scanf("%d",&N);
while (N!=0)
{
n=N%10;
if (n==2) k=k+1;
N=N/10;
}
if (k>0) printf ("True");
else printf("False");
return 0;
}
          
Comments: