a place where all ur worries are gone and scream all crap u wan while learning something new every day! c language to calculus, welcome to MY HOLY WORLD! :-)

Monday, April 27, 2009

it has been a long time since the last post
now,
from c to C++!!
here is a very useful prog
#include
using namespace std;
int main()
{
double radius;
cout<<"enter radius: "; cin >> radius;
double area = radius*radius*3.14;
double cir = radius*2*3.14;
getchar();
cout <<"The area is "<< area << endl; cout <<"The circumference is "<< cir << endl;
getchar();
return 0;
}

a holy new prog and my holy world!

Monday, March 30, 2009

welcome
now lets expand ur c programming with a more powerful function
the sqrt function
lets say u wan to square 9
or any number u choose

#include
#include
int main()
{
double x = 9;
double result = sqrt(x);
printf("The square root of %.2lf is %.2lf\n", x, result);
getchar();
return (0);
}

remember to include the math.h file as u are using the sqrt function
please leave comments
csya rhe mind of the future!!

Friday, March 27, 2009

One important tip
i had just forgotten
incase u r unable to run the file as the moment the file opens it closes
the in the code insert the code

getchar();

insert this code after the printf function
happy programming!!
csya- the mind of the future!! :-)

Wednesday, March 25, 2009

part 2
now that u noe how to use the printf
now try using the scanf function

#include
int main()
{
printf("input age"); /*first text*/
scanf("%d,age); /*prompts user to input age*/
/***********divider*****************************************/
printf("/n Yur %d years old",age);
return(0)
}

compile and execute and the input should be

input age
10000
Yur 10000 years old.

volia
a new program!
please leave comments in the c box
lol=.=

Friday, March 20, 2009

C programing 1.1
welcome!
learn the most popular programmes of all!
in least than one month, u can program like the pros!
first download a c compiler for FREE @ www.bloodshed.net
no virus! (software is accepted worldwide )
open ur compiler at type the following
#include
int main()
{
printf("Hello all");
return(0);
}

compile at the output should be

Hello all

this is ur first programme!

welcome to my holy new blog! learn somthing new every day!
for feedback please post at cbox.
THX