Prathmesh Yelne has Published 62 Answers

How to Calculate Area of Circle using C Programming

Updated on 12-Dec-2021 13:17:37

C Program to Calculate Area of Circle Shape : Circle Formula : Π * r * r Definition : 1. Ellipse in which the two axes are of equal length 2. Plane curve generated by one point moving at a constant distance from a fixed point 3. You can compute the area of a Circle if you know its radius. Program : #include <stdio.h> int main() { float radius, area; printf("\nEnter the radius of Circle : "); scanf("%d", &radius); area = 3.14 * radius * radius;... Read More

How to Calculate Area of Rectangle using C Program

Updated on 12-Dec-2021 13:06:07

C Program to Calculate Area of Rectangle Shape : Rectangle formula : area = l * b Definition : 1. A plane figure with 4 sides and 4 right angles and having Equal Opposite Sides 2. Adjucent sides makes an angle of 90 degree 3. You can compute the area of a Rectangle if you know its length and breadth Program :  #include <stdio.h> #include <conio.h> int main() { int length, breadth, area; printf("\nEnter the Length of Rectangle : "); scanf("%d", &... Read More

How to Calculate Area of Right angle Triangle using C Language

Updated on 12-Dec-2021 12:57:49

C Program to Calculate Area of Right angle Triangle Definition : Triangle having one angle of measure 90 degree is called Right angle Triangle. Sides of Triangle are : base , height , hypotenuse. You can compute the area of a Tr. if you know its any two sides. Program :  #include <stdio.h> int main() { int base, height; float area; printf("\nEnter the base of Right Angle Triangle : "); scanf("%d", &base); printf("\nEnter the heigh... Read More

How to Find Area of Scalene Triangle using C

Updated on 12-Dec-2021 12:44:54

C Program to Find Area of Scalene Triangle : #include <stdio.h> #include <math.h> int main() { int s1, s2, angle; float area; printf("\nEnter Side1 : "); scanf("%d", &s1); printf("\nEnter Side2 : "); scanf("%d", &s2); printf("\nEnter included angle : "); scanf("%d", &angle); area = (s1 * s2 * sin((M_PI / 180) * angle)) / 2; printf("\nArea of Scalene Triangle : %f", area); return (0); } Output : Ente... Read More

How to Calculate Area of Equilatral Triangle using C Language

Updated on 12-Dec-2021 9:59:37

#include<stdio.h> #include<math.h> int main() { int side; float area, r_4; r_4 = sqrt(3) / 4; printf("\nEnter the Length of Side : "); scanf("%d", &side); area = r_4 * side * side; printf("\nArea of Equilateral Triangle : %f", area); return (0); } Output : Enter the Length of Side : 5 Area of Equilateral Triangle : 10.82 Properties of Equilateral Triangle : Equilateral triangle is a triangle in which all three sides a... Read More

How to print hello world using C Language

Updated on 12-Dec-2021 9:39:30

In this example, you will learn to print "Hello, World!" on the screen in C programming. #include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; } Output : Hello, World! ... Read More

How to Check Whether Number is Perfect Or Not using C

Updated on 12-Dec-2021 9:31:51

C Program to Check Whether Number is Perfect Or Not #include <stdio.h> int main() { int num, i = 1, sum = 0; printf("Enter a number: "); scanf("%d", &num); while (i < num) { if (num % i == 0) { sum = sum + i; } i++; } if (sum == num) printf("%d is a Perfect Number", i); else printf("%d is Non Perfect Number", i); return 0; } ... Read More

Which is default HTML5 skeleton ?

Updated on 18-Nov-2021 9:48:31

An HTML5 skeleton could look like this: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>THIS IS SIMPLE HTML5 SKELETON</title> </head> <body> </body> </html> (Note that this is not the most minimal HTML5 document, so many parts are optional.)... Read More

How To Clean Up Unnecessary Code From WordPress Header Without Plugins

Updated on 28-Oct-2021 9:44:44

How To Clean Up Unnecessary Code From WordPress Header Without Plugins How To Remove Weblog Client Link Example: <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.example.com/xmlrpc.php?rsd" /> To remove the EditURI/RSD link from WordPress header, paste the below code into your theme’s function.php. remove_action ('wp_head', 'rsd_link'); How To Remove Windows Live Writer Manifest Link Example: <link rel="wlwmanifest" type="application/wlw... Read More

Python String split() and join() Methods – Explained with Examples

Updated on 27-Oct-2021 17:52:26

When working with strings in Python, you may have to split a string into substrings. Or you might need to join together smaller chunks to form a string. Python's split() and join() string methods help you do these tasks easily. In this tutorial, you'll learn about the split() and join() string methods with plenty of example code. As strings in Python are immutable, you can call methods on them without modifying the original strings. Let's get started. Python split() Method Sy... Read More

Advertisements

ads