You are viewing a single comment's thread. Return to all comments →
My solution in C...Hope it helps!!!
#include<stdio.h> int main() { int n=0,p=0,min; scanf("%d",&n); scanf("%d",&p); min=(n/2)-(p/2); if(min>p/2) min=p/2; printf("%d",min); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Drawing Book
You are viewing a single comment's thread. Return to all comments →
My solution in C...Hope it helps!!!