I suppose I am not going to worry about not using strings. Here is where I am at right now. When I run my program though, it gets to the part where it asks the user for a letter, but no matter what...
Type: Posts; User: 1rwhites
I suppose I am not going to worry about not using strings. Here is where I am at right now. When I run my program though, it gets to the part where it asks the user for a letter, but no matter what...
Here is what I have so far...
#include <stdio.h>
#define SIZE 20
char word[SIZE];
char guess[SIZE];
#define STAR '*'
Is there anyways I can do that without using "stdout"?
In my program, I want the user to enter a word. After that, I need for my program to tell me how many letters the user entered. I know I need some sort of an array, and I'm not allowed to use...
I don't understand how to figure out how many letters are in the word the user enters.
Here is a lame attempt so far of what I'm trying to do
#include <stdio.h>
#define SIZE 20
#define GUESS '*'
int main(void)
{
I forgot to mention, I'm not allowed to use strings for the assignment.
I am trying to build a HANGMAN program. I want to first ask the user to enter a word, and then I want that word to be the word that you have to guess. My problem is I don't understand how to make an...
I'm sorry I'm confused. What am I wrapping in a while statement??
OK here is a piece of my program:
#include<stdio.h>
#include<math.h>
#define PIN 2424
#define TRUE 1
/* Function Prototypes */
OK here is what I have so far.
#include<stdio.h>
#include<math.h>
#define PIN 2424
#define TRUE 1
/* Function Prototypes */
OK here is my entire program. I still don't have this figured out. The first time I input for example 50, it says that the ATM can't make cash out of it. But when it prompts again I put in 50 and it...
OK I Have this
int get_data(int money)
{
int count2;
int new_cash;
Here is what I have so far
int get_data(int money)
{
int count2;
int new_cash;
int error;
Ok everything is good. thanks everyone for your help.
OK here is my code now.
#include <stdio.h> /* define fopen,fclose,fscanf,fprintf */
#include <math.h> /* sqrt definition */
#define TRUE 1
#define FALSE 0
Here is my data now.
50 is not a prime number
17 is a prime number
45 is a prime number
19 is a prime number
2 is a prime number
36 is not a prime number
31 is a prime number
41 is a...
OK here is what I have now
#include <stdio.h> /* define fopen,fclose,fscanf,fprintf */
#include <math.h> /* sqrt definition */
#define TRUE 1
#define FALSE 0
int is_prime(int num);
For my program, I need to check whether a number is prime or not. I have to use a for loop. And I only have to check for divisors that are less then or equal to the square root of the number being...
OK here is my program
#include<stdio.h> /* fprint, fscanf, fclose, fopen definitions */
int main(void)
{
OK. it asks for the next room correctly. But the calculations are messed up. Instead of getting 180, 12 inch tiles like it used to. It gets 1080459264, 0 inch tiles
whenever I run your program
Enter the size of the tiles in inches > 12
Enter the room width (feet and inches seperated by a space): 17 4
Enter the room length (feet and inches separated by a...
OK here is my problem
int main(void)
{
int tiles; /* tile size in inches */
printf("Enter the size of the tiles in inches > ");
Dear filker0,
If you were anywhere near me I would kiss you!
Thanks a lot. It works fine.
Whenever I do
room_tile = ceil(width_total / tiles);
/* ... */
length_tile = ceil(length_total / tiles);
I get the following error