Okay so looking at the examples on google I came up with this code
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define pi 4*atan(1.)
main(){
double...
Type: Posts; User: Zachary May
Okay so looking at the examples on google I came up with this code
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define pi 4*atan(1.)
main(){
double...
Thanks. Makes sense
int LaGrange(int x0[],int x[],int n,int m); I just noticed that i am not even using this
#include <stdio.h>#include <stdlib.h>
#include <math.h>
#define pi 4. * atan(1.)
int LaGrange(int x0[],int x[],int n,int m);
main(){
double x[10]={0,0.1,0.3,0.45,0.66,0.8,1.1,1.4,1.5,1.9};
...
I have to do a project for Programming and he said in quotes
"Programming exercise 10.6: the programming project is as described, except do not represent the points using structures.Assume, as...
Haha, can't believe i didn't see the little math operations in that lol. Thank for the help
Why does this code = 27 instead of 21
7*7*7=21
#include <stdio.h>
#define x 5+2
main(){
int i;
Thank you for your help
If you take out g=max++ it does compile.
That's why I asked why C won't let you do this.
I defined max as 52 but you can't increment that and I wanted to know why
Okay. All I can say is that we use dev c++
My teacher tests on this, so what am i suppose to do
First, I know this is bad programming and most people say to not use it, but my teacher uses this stuff on his test a bunch.
#include <stdio.h>
#define max 52
main(){
int...
Nope. We are learning Strings and Arrays right now, but for the purpose of this exercise, we are not allowed to use them. And that is what im having the main problem with. If I could use arrays I...
I don't have any experience in arrays yet for this project so I can't use this.
int combination(int a,int pos,int count)
{
int d;
if (count>0)
{
I am having a terrible time figuring out how to start this.
int combination(int a,int count)
{
if (count <=1){
printf("%d",a);
return a;
combination(a+1,count-1);
printf("%d",a);
Okay, I am understand how to go about the solution, it is clearer to see with the answers being backwards. I am going to write the program part of this later on and i will respond back if I have...
Okay so the job of this program is to have a robot take steps of 1,2,3 meter in a amount of steps asked by the user. After the user inputs a value, the program will tell them that the robot can walk...
Okay Thank you. I will try this
basically i have to do a summation of e, which is 1/k! and i need to allow the user to input a positive integer which i did. The second thing i need to do is once the total is given, i need to allow...