In particular, we usually use the range function to create the values for the iterator variable (this is what was in Stephen Rauchs comment).The first argument to range is the starting value, the second is the final value (non-inclusive), and the third value is the step size (default of 1).
If you only supply one value (e.g. You just pass it an iterable (e.g. Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. Not the answer youre looking for Browse other questions tagged python python-3.x for-loop or ask your own question. Discuss the difference between a hypothesis and a theory in the context of criminology Dostlar il payla. The program is compiled in Keil for 8051 - AT89C51 in assembly language. Program to sort numbers in descending order, Flowchart:- Program:- ORG 0000 MOV R1,40H MOV R3,04H LOOP1: MOV 02H,03H MOV B,R1 MOV 00H,01H INC R0 LOOP2: MOV A,R0 CJNE A,B,CHECK MOV R0,00H SJMP CONTINUE CHECK:JC CONTINUE MOV R0,B MOV R1,A MOV B,R1 CONTINUE:INC R0 DJNZ R2,LOOP2 INC R1 DJNZ R3, LOOP1 SJMP END Output:- For more ASM programs - click here. Program to find square root of a number, Flowchart:- Program:- ORG 0000H MOV R0,40H MOV R1,01H MOV R2,00H MOV A,R0 LOOP: SUBB A,R1 INC R2 JZ ANSWER JC FALSE INC R1 INC R1 SJMP LOOP FALSE: MOV 50H, 0FFH SJMP ANSWER: MOV 50H,R2 SJMP END Output:- For more ASM programs - click here.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |