if (n>0) printf ("%d is positive\n", n);
160 and 192.
#include <stdio.h> int main() { printf("Program to find ODD or Even Number\n"); while(1) { int n = 0; printf("\nEnter a number(-1 for Exit): "); scanf("%d",&n); if( n 0) { printf("%d is a EVEN number.\n", n); } else { printf("%d is a ODD number.\n", n); } } return 0; }
printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&a); } getch(); }
#include#includevoid main(){long int n;printf("Please enter the number");scanf("%ld" ,&n);n=n*n;printf("Square of entered number = %ld ");}but if you want to show the entered number e.g.Square of the entered number 8=64then below is the code.#include#includevoid main(){long int m,n;printf("Please enter the number");scanf("%ld" ,&n);m=n;n=n*n;printf("Square of entered number %ld = %ld ",m,n);}
(n-2) x 180 n being the number of sides that the shape has
n(n - 3)/2. where n is the number of sides in the shape
The easiest way to find out how many degrees in any shape is 180*(n-2) where n equals the number of angles in the shape. Thus, triangles have 180 degrees.
Use a protractor or use the formula: (n-2)*180 = sum of degrees whereas 'n' is the number of sides of the shape or polygon
S is the length of any sideN is the number of sidesS^2N-------------4 tan(pi/N)
A regular polygon of n sides (where n > 4) has n obtuse angles. Since there is no limit to the number of sides that a polygon can have, there can be no limit to the number of obtuse angles in a shape.
A prism with an n-sided base will have 2n vertices, n + 2 faces, and 3n edges. A pyramid with an n-sided base will have n + 1 vertices, n + 1 faces, and 2n edges.
The formula to find the total amount of degrees contained by a shape is (n-2) * 180, where n is the number of sides. So, 25 - 2= 23, and this times (*) 180 is 4140, so the total of the internal angles of a 25-sided shape is 4140.
5(5-3)/2. That it is the formula so that shape would have 5 diagonals. n(n-3)/2 where n is the number of sides
The nth triangular number is n(n+1)/2
156 degrees Sum of interior angles of a polygon=180(n-2), where n is the number of sides. To find one interior angle's measure, divide by the total number of angles, which is also the total number of sides.
A regular nonagon is a shape with 9 equal sides, right? Well, with the equation (n-2)180, where n is the number of sides, you can find the sum of the interior angles. Then you divide that number by n to get the measure of each interior angle. You do the rest. If your in A+:140'