Write a c program to calculate the equation, C/C++ Programming

Assignment Help:

Write a C program to calculate the output Y for a given value of X for the following formula

  Y=X2 + 2X +3
  #include stdio.h
  void main()
  {
  char promt;
  float y,x;
  printf("Please enter in the real value of X\n\r");

scanf("%f",&x);
y = (x*x) + 2*x + 3;     
printf("The value of Y is %f \n\r",y);  
printf("Press any key to exit \n\r");
scanf("\n%c",&prompt);  
}


Related Discussions:- Write a c program to calculate the equation

Determine the size of an interger data type without using , Determine the s...

Determine the size of an interger data type without using sizeof() function? A: #include int main() { int *i ; int *j = i + 1; cout }

Flowcharting., flowcharting of 3 quizes display the average

flowcharting of 3 quizes display the average

Padovan sequence, write a program to generate padovan sequence in c++

write a program to generate padovan sequence in c++

Class and object, how to write c++ code for financial system using class an...

how to write c++ code for financial system using class and object

A client and a server for an instant messaging system based , Develop a cli...

Develop a client and a server for an instant messaging system based on UDP and IPv4

Introduction of c, Discuss the saleint featuresand application of c

Discuss the saleint featuresand application of c

Main program to test the basic operations, The Main program is slightly mor...

The Main program is slightly more complicated and you need to think about the I/O process. First of all, for most applications you do not call the low level routines GetChar and P

Programming and solving problems, One person who is specialist at programmi...

One person who is specialist at programming and solving problems with a computer Project Description: Dear Potential computer, hardware, programming and software genius, I

Luminous jewels polishing necklace, 1.jewels can only be removed for polish...

1.jewels can only be removed for polishing from either end of the necklace. 2.cost of polishing=sitting number*colour value of jewels.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd