I've got an assignment which says "Write a program to find complex numbers".

Could someone explain the question ...what do i need to do? do i need to check the user input for complex no. ?? im not asking for codes, just the logic. Please help :sad:

thanx for reading the post.

I'm as clueless as you are. A google search came up with this, although "complex numbers" is highly subjective.

Perhaps you should ask your professor for more details, because it isn't fair if you don't even know what the assignment is about...

my guess is you need to find out given a formula e.g.
sqrt and you enter some number like 1,2,-1
you need to find out whether the output is a complex number
You would better ask your prof what should be input for this program

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.