Hi,
I am trying to get the program to request and convert the time in seconds 3 times. If i use and IF statement ie IF(time>) then "execute code" it makes the code look really long and was...
Type: Posts; User: Axiom
Hi,
I am trying to get the program to request and convert the time in seconds 3 times. If i use and IF statement ie IF(time>) then "execute code" it makes the code look really long and was...
i noticed that changing to this ensures that you can only enter 3 sig figs...thanks once again!!
scanf( "%3f %2f", &sum);
thank you!
thanks...any help right now is really really appreciated!
i see i did addition instead...
is there something i need to put after this to do the actual cal? float result = sum * z;
sorry if im sounding thick but i just picked this all up a few days...
how would i ensure it is exactly in the correct format though and then join them to be multiplied by 10%?
#include <stdio.h>
float sum =-1;
const double z =1.1;
is it better to seperate the before and after decimals so having an extra variable y so that i can have scanf %3d, &x and then scanf %2d, &y ?
Hi,
Sorry i could not think of a title, but my problem is this. I need to write a program which reads a sum of money in the form of ddd.dd, so 456.89 is ok and then it increases it by 10% and...
I have just figured it...i use the getchar(); twice since my program requires 2 outputs
many thanks
Hi,
I am using the Dev-C++ compiler and editor and have noticed that when i try to run a program, the results flash so fast i cannot see it? For example, this program to compute the alternative in...