Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,436 members, 7,819,588 topics. Date: Monday, 06 May 2024 at 06:33 PM |
Nairaland Forum / Science/Technology / Programming / Assembler, Help Please (200 Views)
I'm suffering from tutorial hell, I need help please!!? / Mysql Help:please I Need Help Transposing Row Into Column / I Can't Get A Siwes/it Placement....any Help Please?? (2) (3) (4)
(1) (Reply)
Assembler, Help Please by Xianders: 10:46am On Nov 05, 2021 |
In a 20-character feed, count the number of a characters A. |
Re: Assembler, Help Please by Bahat: 5:02pm On Nov 05, 2021 |
Store the character feed into an array or list Parse through the list with a for loop Check the condition with if statement Store each occurrence into a separate list if need Then check the stored length field. Or count +=1 to every new occurrence Output total count as the number of occurrence Character_feed =[a,a,...] Count = 0 number_of_occurence = ‘A’ For (data in character_feed). // check to make sure list is not empty If(number_of_occurence in data) Count +=1 Else Move to the next data in list You can as well remove the else part. After the operation is done Output total count number. This should help 1 Like |
(1) (Reply)
Mobile App Development Company / Hacking / An Online Place To Learn Actual Programming
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |