Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  rak.c
Language: C/C++
Code:
#include<stdio.h>
int main(){
/* Your Code Starts Here */
int A,B,res;
scanf("%d%d",&A,&B);
if((B>=1)&&(A>B)&&(A<=10000))
{
    res=A-B;
    res++;
    if(res%10==0)
    {
        res=res-2;
    }
    printf("%d",res);
}
else{
printf("entered invalid inputs");
return 0;
}
Comments: