Anegan is a member of a programming competition site, Awesome Coder.
#include <stdio.h> int main() {int n,r; scanf("%d %d",&n,&r); if(n>=10) {printf("%d",r);} else {printf("%d",r+(100*(10-n)));} return 0;}
Anegan is a member of a programming competition site, Awesome Coder.
#include <stdio.h> int main() {int n,r; scanf("%d %d",&n,&r); if(n>=10) {printf("%d",r);} else {printf("%d",r+(100*(10-n)));} return 0;}
0 Comments
if you have any doubt, plz let me know