why so sarcastic quzah? did i say something to offend you?
thanks citizen and onionKnight. it does work now... i thought onionKnight was simply making a suggestion to make my code look...
Type: Posts; User: peanut
why so sarcastic quzah? did i say something to offend you?
thanks citizen and onionKnight. it does work now... i thought onionKnight was simply making a suggestion to make my code look...
the compiler accepts (input=='+'||'-')... thats not the problem... and i could use if-else tags but that would be just as difficult... regaurdless thats not whats wrong with the program...
#include <stdio.h>
main()
{
int state, n=0;
char input;
state=0;
fputs("Enter a positive or negetive integer\n", stdout);
ok thank you.
I figured it out.
I've looked through google, but it's more of a if problem, I understand single character inputs, but not double...
How does a '0' return a different answer than a '00'?
/*
*
* Purpose: Determine if a string of 0's and/or 1's ends in 00 or 11.
*
* Input: String of n 0's or 1's terminated with a newline
*
*
* Output: Message:
*
* Accepted (if the...
well... if it's the right format then why did it not do anything? it doesn't space them at all=(
i think i made it worse...
#include <stdio.h>
#include <math.h>
int main(void)
{
my new problem...
fputs("case\t" "voltage\t" "Initial Resistance\t" "Ending resistance\t" "Increment Resistance\n", stdout);
printf("%lf\t" "%lf\t" "%lf\t" ...
#include <stdio.h>
#include <math.h>
int main(void)
{
double volts, init, ending, increment;
fputs("What is the voltage?", stdout);
scanf("%lf", &volts);
fputs("What is the...
does anyone know anything that can help me?
i really need it and i appreciate it.
hehe, i'm not exactly sure what pseudocode is... but i think my table is supposed to look like his example... It's at the bottom of this link... i don't think he wants me to just /t the right...
this is kinda confusing... are you just spacing it out into a chart?
thanks nadroj
I don't want you to do my homework for me at all... i simply don't know how to make my data be displayed in a table... thats only a small concept within my homework. My instructor has no problem...
#include <stdio.h>
#include <math.h>
int main(void)
{
double volts, init, ending, increment;
fputs("What is the voltage?", stdout);
scanf("%lf", &volts);
fputs("What is the...
after i test it though i'm going to bed... so thats the end of this post for tonight. thanks a ton. really, it was very useful.
awesome... i'm gonna go test it
a couple of questions cuz i'm dumb...
first. Is "void foo(void)" significant or can i use any name like "jaosdh(void)"?
second. Is their any way i could make it loop x times where x is...
/*
* Author: Joe blow
*Date: 10/12/2006
*Class: CSE 121, Assignment 3, Excercise 4
*
* This program calculates the population based upon the birth and death
*rates, as well as the initial...