| | |
please help me
![]() |
•
•
Join Date: Sep 2004
Posts: 4
Reputation:
Solved Threads: 0
I need to write a C program
(a) declare two integer variables , and y
(b) lex x = 6
(c) find y value use the following algebraic fromula:
y=2*x*x*x+5
and I only have until these part
#include <stdio.h>
int main ()
{
int x, y;
x = 6;
y = 2*x*x*x+5;
I don't know what to put next, [lease help me with my homework
thanks
(a) declare two integer variables , and y
(b) lex x = 6
(c) find y value use the following algebraic fromula:
y=2*x*x*x+5
and I only have until these part
#include <stdio.h>
int main ()
{
int x, y;
x = 6;
y = 2*x*x*x+5;
I don't know what to put next, [lease help me with my homework
thanks
#include <stdio.h>
int main(void)
{
int x = 6, y = 2 * x * x * x + 5;
printf("x = %d, y = %d\n", x, y);
return 0;
}
/* my output
x = 6, y = 437
*/ "One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
•
•
Originally Posted by Dave Sinkula
Man... open a book.
Dont forget to spread the reputation to those that deserve!
![]() |
Other Threads in the C Forum
- Previous Thread: Trees?
- Next Thread: I'm complete lost
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives looping loopinsideloop. lowest match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






