Saturday, June 14, 2014

http://codepad.org/hlvHEluu Downloader.OXA, Downloader.VNR. /* Double-Click To Select Code */ #include #include #include void main() { float a,b,c,root1,root2,x,real,im; clrscr(); printf("-> Quadratic Equation Form: ax2+bx+c"); printf("\n\nEnter the value of a: "); scanf("%f",&a); printf("\nEnter the value of b: "); scanf("%f",&b); printf("\nEnter the value of c: "); scanf("%f",&c); x = (b*b)-(4*a*c); if(x>0) { root1 = (-b+sqrt(x))/(2*a); root2 = (-b-sqrt(x))/(2*a); //ROOTS ARE UNIQUE printf("\nThe roots of the equation are: %.2f and %.2f",root1,root2); } else if(x==0) { root1 = -b/(2*a); root2 = root1; //ROOTS ARE SAME printf("\nThe roots of the equation are: %.2f and %.2f",root1,root2); } else { real = -b/(2*a); im = sqrt(-x)/(2*a); // ROOTS ARE COMPLEX printf("\nThe roots of the equation are: %.2f+j%.2f and %.2f-j%.2f",real,im,real,im); } getch(); }

Coding Bot | Program Codes

Exploring Microsoft Graph APIs: A Tech Enthusiast's Dive into Messages and SharePoint

A Clustering Guide to CrateDB and ElasticSearch

Increase Open Files/File Descriptors/Ulimit in Ubuntu | CrateDB ElasticSearch

Switch Between Multiple Java Versions on Linux

Install Java 11 and Java 8 on Linux

Log4j SMTP Appender Using System Environment Variables

Fixed — ElasticSearch CrateDB Logstash — ClusterBlockException Forbidden Index Read-Only

Add/Edit Startup Applications in Ubuntu Linux

How To Disable Copy Paste And Mouse Right Click Using JavaScript, CSS, jQuery, Swift

How To Submit Website To Google,Bing,Baidu,Yandex,DuckDuckGo

Customize Scrollbar In Blogger

Difference Between Hashmap and Hashtable Java

Armstrong Number C Code

Quick Sort Algorithm And C++ Code

Find Number Of Occurrences Of a Character In a String C Program

C Code to transpose a matrix

Add Two Matrix C Code

How to get invited for Inbox by Gmail

Make Codes Postable - HTML Friendly

[SOLVED] Joomla -This email address is being protected from spambots. You need JavaScript enabled to view it.

Calculate Roots Of a Quadratic Equation Using C Program

C Code To Concatenate Two Strings

C Code To Find The Length Of a String

C Program To Find The Number Of Occurrences Of a Character In a String

Find Factorial Of a Number Using Recursion C Program