HamroCSIT Logo
HAMRO CSIT
  • Course New
  • Entrance
    • Entrance Preparation
    • MCQ Questions
    • Colleges
    • Entrance Class
    • Entrance Books
    • Free Entrance Video Course
  • Semester
    • First Semester
    • Second Semester
    • Third Semester
    • Fourth Semester
    • Fifth Semester
    • Sixth Semester
    • Seventh Semester
    • Eight Semester
  • Questions
  • Subscription Automated
  • Notices
  • Articles
  • More
    • Ask Question
    • College Ambassadors
    • Financial Support Program
    • Contribute
    • Contact Us
Login Register
Hamro CSIT User Account
  • Sign In
  • Create Account


Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT

Question

  • Home
  • Question
  • Answer
Resolved anishkamukherjee237 Profile Image
anishkamukherjee237

7 months ago

editor

Construct the flow graph for the following code and identify all basic blocks:

  1. read x
  2. i = 1
  3. sum = 0
  4. prod = 1
  5. if i > x goto 13
  6. square = i * i
  7. sum = sum + square  
  8. prod = prod * i
  9. i = i + 1
  10. if i <= x goto 6
  11. write sum
  12. write prod
  13. halt

Identify loop invariant code that can be moved out of the loop, if any.

  • Answered by HamroCSIT
  • 0 Comments
  • 7 months ago

This answer is restricted. Please login to view the answer of this question.

Login Now
Subscribe
Login
Notify of
Please login to comment
0 Comments
Oldest
Newest Most Voted
Share

Share this link via

Or copy link

logoHAMROCSIT

Hamro CSIT is a comprehensive web and mobile platform that provides B.Sc. CSIT students with resources like notes, syllabi, question banks, solved past papers, practical files, and free entrance preparation materials — all in one place.

  • [email protected]
Semester
  • First Semester
  • Second Semester
  • Third Semester
  • Fourth Semester
  • Fifth Semester
  • Sixth Semester
  • Seventh Semester
  • Eighth Semester
Links
  • About Us
  • FAQs
  • Sitemap
  • Privacy Policy
  • Terms and Conditions
  • College Ambassadors
  • Financial Support Program
Hits Counter
20230240
Google Play App Store
Follow Us

Copyright 2026 | HAMROCSIT | All Right Reserved

Official Payment Partner Esewa Logo
HAMROCSIT.COM

Copyright 2024 | HAMROCSIT.COM | All Right Reserved - Nymna Technology