Advertisement
Guest User

asdasda

a guest
Nov 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a,b;
  6. scanf("%d %d",&a,&b);
  7. if(a<0 && b<0){
  8. printf("Invalid input");
  9. }
  10. else{
  11. int tempa,tempb;
  12. tempa=a%10;
  13. tempb=b%10;
  14. int flag = 1;
  15. while(tempb>0){
  16. if(tempa == tempb){
  17. tempa/100;
  18. tempb/10;
  19. }
  20. else{
  21. printf("NE");
  22. }
  23. }
  24. if(flag==1){
  25. printf("DA");
  26. }
  27.  
  28. }
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement