C/ C++


 Topic: C/ C++
Users reading this topic: There are no members reading this topic.
  Posted on June 8, 2016 15:57
!Kurapika
Rank: member

Forum Rank:
Special Jounin

Posts: 521
Joined on:
October 20, 2013
#1
Find the maximum and minimum number of ten numbers and solve the equation ax^2+bx+c.

Please help
  Posted on June 8, 2016 16:28
desangele
Rank: member

Forum Rank:
King Walter

Posts: 9145
Joined on:
November 30, 2007
#2
http://prntscr.com/bdwo2z
Theres the code for the min/max number out of 10
I aint written in C for a while so maybe the code isnt perfect and can be shortened
as for the equation i remember that there some specificis like what happens if a=0 and etc is that how the whole problem is given?just solve the equation?
edit:btw since i used a c++ compiler i only used lib iostream you should probably change it to the c libraries if they want it in c (stdio,stdlib etc)
edit2:
http://prntscr.com/bdwtwz theres the 2nd code without checking if the quadratic equation exists
  Posted on June 8, 2016 16:40
petr15
Rank: member

Forum Rank:
Sannin

Posts: 3395
Joined on:
March 16, 2009
#3
Jak bedziesz mial cos innego z programowania to pisz. nienawidze C++

~gejz
  Posted on June 8, 2016 16:43
!Kurapika
Rank: member

Forum Rank:
Special Jounin

Posts: 521
Joined on:
October 20, 2013
#4
Thank u des for first part of this exercise. I`ve got this task in the form u see there. I will make a research and post explanation later.
  Posted on June 8, 2016 16:46
desangele
Rank: member

Forum Rank:
King Walter

Posts: 9145
Joined on:
November 30, 2007
#5
!Kurapika wrote:
Thank u des for first part of this exercise. I`ve got this task in the form u see there. I will make a research and post explanation later.
i edited with the 2nd part anyway without doing the additional things, you should try to understand/rewrite it tho since those are the easiest things ur going to do if ur going to study this lol
  Posted on June 8, 2016 16:51
!Kurapika
Rank: member

Forum Rank:
Special Jounin

Posts: 521
Joined on:
October 20, 2013
#6
My sister asked me about it, for tommorow. I had c++ in high school but I dont have enough time to remmember everything ;/ thank u again des
There are currently no users online.