Active Member
✔️ HL Verified
💻 Oldtimer
- Joined
- Mar 13, 2005
- Messages
- 3,877
- Best answers
- 0
I am taking a C Programming class in College and I thought I would get some advise as I go through all of this.
Sub has helped me with a few things already.
Calculator: http://www.sendspace.com/file/saho29
As I learn more, I shall post more and more in here, just as Sub has done with his thread. By the end of the class, I shall be able to code a program, and code in XNA as well. I may try to make my own Indie game on Xbox.
Sub has helped me with a few things already.
Calculator: http://www.sendspace.com/file/saho29
Code:
{
//Floating Numbers.
float x, y, z;
//These are the definitions of the floaters. Sub said these can be defined above in float as well.
x= 0.0;
y= 0.0;
z= 0.0;
//Input Value for X and Y.
printf("\nInput x=");
scanf("%f", &x);
printf("\nInput y=");
scanf("%f", &y);
//Equation
z= x * y;
//Prints what is in red.
printf("\nThe Answer is...%f\n", z);
//Pauses the console.
system("PAUSE");
return 0;
}
As I learn more, I shall post more and more in here, just as Sub has done with his thread. By the end of the class, I shall be able to code a program, and code in XNA as well. I may try to make my own Indie game on Xbox.