So this works with the while statement commented out. Whats wrong with the while?
#include <stdio.h>
int main()
{
int input_v,hour,min,sec;
printf("input total seconds\n");
scanf("%d",...
Type: Posts; User: anaer0bic
So this works with the while statement commented out. Whats wrong with the while?
#include <stdio.h>
int main()
{
int input_v,hour,min,sec;
printf("input total seconds\n");
scanf("%d",...
cheers tabstop
Yes.true & it was working for me when I was just doing minutes & seconds, but when I included hours it didn't.like so
#include <stdio.h>
int main()
{
int input_v,hour,min,sec;
...
explain please? I thought 3600/60= 60.
Hi. Whats wrong here?
hour = total_sec /3600;
min = total_sec % 60;
sec = min % 60;
check this library FMOD - Debian Wiki
priceless
thanks. got that now
so i tried
Still incorrect answer..Is it something to do with reading a string and omitting end of line character?
hi I'm wanting to convert alphabet to numbers as in a == 1, b == 2. Instead I get asci, so i want to subtract 96. like so:
#include<stdio.h>
#include<ctype.h>
#define MAXSTRING 100
int...
Changed to check correct date is entered. The maths is ok I've checked that , as it's for the size growth of an apple. The issue is with date, reference to it in different types line 18 & 48.
...
Hi.
harvestsize = (int) days * 0.72 + size;
yes I'm actually multiplying day by 0.72 then adding the current size as that is daily growth rate of a 'Royal Gala' apple.
Anyway the fault is in...
plus
C By Dissection:The Essentials of C Programming
Ira Pohl & Al Kelley
C:The Complete Reference
Herbert Schildt & Rex Jaeschke
i want to determine space between two dates. i'm getting wrong answer.
#include <stdio.h>
#include <time.h>
int main(void)
{
int size, harvestsize;
char date[11] = {0};
printf("Input...
just did some gymnastics. thanks laserlight.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int a, n;
char m[6];
Hi everyone, this my first post. I'm wanting to output six unique integers, but the output is one integer. Any help please.
#include <stdio.h>
#include <time.h>
int main()
{
int a, n;
...