if I asking for help on a board that is used for help why are people getting mad? I haven't been doing programming forever and am just trying to learn what I am doing wrong. Sorry I am a bother but...
Type: Posts; User: ke121885
if I asking for help on a board that is used for help why are people getting mad? I haven't been doing programming forever and am just trying to learn what I am doing wrong. Sorry I am a bother but...
In this Code:
int main(void)
{
double salary = 0,sumtax = 0;
double fedtax = 0.17;
double statetax = 0.03;
I keep getting a syntax error message right before the statetax in the while loop. But there isn't anything there
int main(void)
{
double salary = 0,sumtax = 0;
double...
Now why did that semicolon stop my entire table from printing? (it worked by the way! Thanks)
so I have gotten this far...now with the incrementing? is there a tutorial that I can use?
int main(void)
{
double two_pi = 2.0 * M_PI;
double interval = two_pi / 19;
...
Sorry this is the one that was on the actual program. I just typed that from my notebook while I was waiting for the program to run. It isn't much different. I just need it to do the increments....
...
I want to print a trigonometric table for sin, cos, and tan.
#include<stdio.h>
#include<math.h>
/*
* Main Function
*/
Are there any good tutorials on usig lrand48() and srand48() or any one that could explain it? I just wrote a quick program tat gave the value of RAND_MAX.
#include <stdio.h>
#include...
Are there any good tutorials on usig lrand48() and srand48() or any one that could explain it? I just wrote a quick program tat gave the value of RAND_MAX.
#include <stdio.h>
#include...
I think with writing these programs I think I have to add in more text for no reason....took out the for loop and the input prompt and still got the same answer....hmmm....thanks!
So I entered the wrong code but here is the updated one. How does it look:
#include <stdio.h>
#include <stdlib.h>
/*
* Main Function
*
I am trying to write a program that would print the value of RAND_MAX here is the code
#include <stdio.h>
#include <stdlib.h>
/*
* Main Function
*
I didn't see the second half of the reply. Thanks! It ended up working. I'm still learning so I am sure i'll have more questions but thanks again! :)
Enter pounds
1
Enter ounces
1
The weight converted to kilograms is -1271310319
The weight converted to grams is 858993460
This is the i/o. I tried fixing what you had said the but numbers...
I am writing a program to a class. It is pretty self explanatory on what is supposed to happen but the math is coming up completely wrong. Any help?
#include<stdio.h>
#define POUNDS 16 //...
I have finished my code but want to right align my text. I have looked everywhere but can't find out how. here it is...
#include<stdio.h>
#define MAX_N 10
#define MAX_P 5
/*
* Main...
im not sure about what to put in after the last ";" Its the printing the data that has me all mixed up for some reason.
I am trying to make a program where the powers show up in table format and cant seem to get it right! this is what I have so far:
int main(void)
{
int n;
printf(" \tA...