Showing posts with label area. Show all posts
Showing posts with label area. Show all posts
Tuesday, 17 October 2017
Area of rectangle in c++
#include<iostream>#include<conio.h>using namespace std;int main(){float lenght, breath;double area;cout<<"Enter length and breath\n";cin>>lenght>>breath;area=lenght*breath;cout<<"Area of rectangle : "<<area;getch();return 0;}Output
Area of circle in c++
#include<iostream>#include<conio.h>using namespace std;int main(){float radius;double area;cout<<"Enter radius of circle : ";cin>>radius;area=3.14*radius*radius;cout<<"Area of circle : "<<area;getch();return 0;}Output
Subscribe to:
Posts (Atom)
Python Program to find Fabonacci
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...
-
#include< iostream > #include< conio.h > #include< math.h > using namespace std; int Octal_to_Decimal(long n) { ...
-
#include< iostream > #include< conio.h > #include< math.h > using namespace std; int Octal_to_Binary(long n) { ...
-
#include iostream > #include conio.h > using namespace std; int main() { float lenght, breath; doubl...


