Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8943883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:53:55+00:00 2026-06-15T11:53:55+00:00

I made two console application, both calculates data for a 3D CAD program. One

  • 0

I made two console application, both calculates data for a 3D CAD program. One calculates normal data and the other Calculates the same data in Logarithmic form.
Now i want to have both in one console application. The users needs to choose, in the command window, if they want to use the normal one or the logarithmic one.
I tried this putting both in a different sub, and using a main sub like the following:

Module Module1
    Sub Main()
        Console.Write("Logarithmic? (yes/no):")
        While Console.ReadLine = "no"
            Call normal()
        End While
        While Console.ReadLine = "yes"
            Call log()
        End While
    End Sub 

this didn’t work because it only caled the first sub.
Or is there a way i can call a different module or something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:53:57+00:00Added an answer on June 15, 2026 at 11:53 am

    You have two separate loops, meaning it only checks for “no” in the first loop, and only checks for “yes” in the second; assuming you want to loop, the approach should be (pseudo-code)

    keepGoing = true;
    while(keepGoing)
       line = ReadLine
       switch(line)
           case "no"
               normal();
           case "yes"
               log()
           default
               keepGoing = false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made two classes in which one is main and other one is a
I made two different Fibonacci functions, the first one worked perfectly. Then I tried
Our application is currently made up of two big entities: C# ASPX files, and
I have a VS 10 console application,which has to take two char inputs and
I made two console app: Broadcasting listener and UDP writer (for practice only). Each
I have two projects, ProjectA and ProjectB . ProjectB is a console application, which
I have a node application that is made mainly of two files, the app.js
Consider two arrays. One with keys. The other with values. Output is an object
Recently i made two template classes,according to the book Modern C++ design. I think
I've created a simple webapp with user authentication. I've made two models: Users for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.