Title | Having problem in pin |
---|---|
Author | Vash Hilsing |
Pages | 10 |
File Size | 27.6 KB |
File Type | DOCX |
Total Downloads | 84 |
Total Views | 503 |
Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, 1. #include<stdio.h> 2. #include<conio.h> 3. #include<iostream.h> 4. 5. float choice2(); 6. float choice3(); 7. 8. float ball[11]={1000,1000,1000,10...
Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, 1. #include 2. #include 3. #include 4. 5. float choice2(); 6. float choice3(); 7. 8. float ball[11]={1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000}; 9. float mypin; 10. 11. float withdraw, deposit; 12. int transaction, myaccount; 13. char transaction1; 14. 15. main() 16. { 17. pin:{ 18. system("cls"); 19. printf("Enter pin code: "); 20. scanf("%f",&mypin); 21. 22. } 23. if (mypin==1234) 24. { 25. myaccount=0; 26. } 27. else if(mypin==2345) 28. { 29. myaccount=1; 30. } 31. else if(mypin==3456) 32. { 33. myaccount=2; 34. } 35. else if(mypin==4567) 36. { 37. myaccount=3; 38. } 39. else if(mypin==5678) 40. { 41. myaccount=4; 42. } 43. else if(mypin==6789) 44. { 45. myaccount=5; 46. } 47. else if(mypin==7890) 48. { 49. myaccount=6; 50. } 51. else if(mypin==8901) 52. {...