salam
kaya haal hai doston mujay Allama Iqbal University ki 2008 atumm ki hal Assinment chaheye
salam
kaya haal hai doston mujay Allama Iqbal University ki 2008 atumm ki hal Assinment chaheye
#include<iostream.h>
void main()
{
int num1,Num2;
cout<<endl<<"WELCOME TO THE C++ PROGRAM"<<endl;
cout<<"PLEASE ENTER FIRST NUMBER"<<endl;
cin>>num1;
cout<<"PLEASE ENTER SCOND NUMBER"<<endl;
cin>>num2;
cout<<endl<<"SUM OF TWO NUMBERS IS = "<<num1+num2<<endl;
cout<<endl<<"PRODUCT OF TWO NUMBERS IS = "<<num1*num2<<endl;
}
sallamz to all
bhai mujh ko dreamweaver ka setup chiyae yaar plz koi send karde yaar bhai pl z mujh ko
i dnt understand
jnab main newcomer hn hum ko samjhaye ga
Great
your thread is very nice, thanks 4 sharing with us!
Circle Area & Circumference Calculation
You are required to write a program which will calculate the area and circumference of the circle by declaring a class. You must declare a class named Circle whose only data member will be radius which should be declared as public. You need to define a macro for the value of PI which will be used while calculating the area of the circle.
Detailed Description:
• Data member radius should be of type double and it should be declared under public scope.
• Value for PI should be defined using #define macro.
• Your class should have two type of constructors:
1. Default Constructor which should initialize radius of the circle with value 0.
2. User Defined Constructor which takes class data member radius as its parameter.
• Declare a public member function named CalculateArea() which calculates the area of the circle. The formula for calculating the area is .
• Declare a public member function named CalculateCircum() which calculates the circumference of the circle. The formula for calculating the circumference is .
• Declare a public member function named Display which will display the calculated area and circumference of the circle on the output screen.
• In the main() function, declare two objects of type Circle:
o One using default constructor
o Second using user-defined constructor.
It should be Display the area and circumference of the circle on the screen like the sample output.
Sample Output:
Radius of the Circle = 0
Area of the Circle = 0
Circumference of the Circle is = 0
Radius of the Circle = 3.5
Area of the Circle = 38.465
Circumference of the Circle is = 21.98
i want to know that how can i post any thing in this group?
thanks dear
nice bro i m very thankful to you
wonderful piece of sharing.
Keep it up as ever.
nice work
Bookmarks