ok...this is the beginning of my program, shoudl i start it like this?
#include <stdio.h>
#include <conio.h>
void main ()
Type: Posts; User: amargo87
ok...this is the beginning of my program, shoudl i start it like this?
#include <stdio.h>
#include <conio.h>
void main ()
the thing is i dont know how to start it. i actually have no idea what would be the best way
B. Missing semicolon
k it really didnt work,
i have a question can some1 show me a detailed code on how i should start it?
cuz i dont understand what i m doing wrong here
Thanks Alot
yep its all good guys i almost got the program workin tks alot everyone
foxman ur from quebec? so u speak french, caliss finalemen qqun qui peut vraiment m'aider
check mec g un devoir a rendre c l'autre poste est ce que je px t'envoyer exactement ce que g a faire...
include <stdio.h>
int main()
{
int intra
int final
int tps
float x;
float y;
float z;
include <stdio.h>
int main()
{
float x
float y
float z
scanf("%d", &x);
scanf("%f", &y);
scanf("%g",&z);
how should i correct it?
like so :
include <stdio.h>
i dont understand what is wrong with it :S
that is correct so it should be like so?
#include <stdio.h>
int main()
{
float exam1
scanf("%d", &exam1);
what i m basicly trying to do, is to start of a program letting you chose between the avg of two exams, or ur entire grade based on the 3 exams, here is the table i have 2 use
intra final ...
wat is the expression i must put be4 the float should it be
should it be const float? or int? n what shoud i put after the expression??
i dont seem 2 understand which one is to be used any why...
really sorry bout that
#include <stdio.h>
int main(void)
{
float exam1
@dwks
the program HAS 2 be in french lool....so im workin on it in french
matsp, i m sorry i dont seem 2 understand how i m gonna put in the variables with float
mustn't i use const float first?
or do i start like so:
#include <stdio.h>
yep to advanced for me i just started it 2 weeks ago :$
i m gonna try n put 2gether wat u just showed me so i can see what happens
avg= (exam1 x 0.20 + exam2 x 0.40) / 0.60
by hand with the first of XM1 and the first of XM 2
(80*.20+82.60*.40)/.60=(16+33.04)/.60=81.73 %
(i know i m missing the beginning its because i...
first off @ hk
i got the table
Xm1 Xm2
80.00 82.60
42.20 25.90
38.20 36.90
78.50 92.75
first off i would like to thank everyone for helping me with the previous problem, now this is another problem i have,
so far i think i did the right job, but i dont seem 2 know how 2 link two...
its all good i got it workin tks alot :)
actually i got it workin it was the }
there shouldnt be the two close 2gethere it was suppose 2 be like this:
break;
printf("\n");
}
while(getchar() !=...
which code do i move all the way down?
while(getchar() != '\n') ;
getchar();
that one? i did, and if i do keep it like that i have the same problem as before,it closes as soon as...
ok wat i m tryin 2 say is
when i hit M, i want it to show on dos ( by using scanf i believe) taht you are married and if you hit D instead that means you are divorced.
Here is the cde with the...
perfect it actually does stay now...thanks alot
1 more question tho,
how do i set up a printf for after i select one of the possibilities?
For example if i press M and then i hit enter the...