The sum of the angles of a regular n-sided polygon is equal to (n - 2) x 180 degrees.Therefore, the sum of the angles of a regular 40-sided polygon (tetradecagon) is equal to (40 - 2) x 180 = 6840 degrees. Therefore, 6840 refers to the sum of the degrees, not the number of diagonals.The number of diagonals of an n-sided polygon is given by n(n-3)/2. So a 40-sided polygon has 40*37/2=740 diagonals.
Three consecutive integers whose sum is 117 are 38, 39, and 40. N + (N+1) + (N+2) = 117 3N + 3 = 117 3N = 114 N = 38
The sum of n and 5 is n+ 5
void main () { int no1, sum, n; clrscr() sum = 0; n = 1; printf("\n enter the number to which sum is to be generated"); scanf("%d",&no1); while(n<=no1) { sum=sum+n; n=n+1 } printf("\n the sum of %d = %d, no1, sum"); getch (); }
If -n = 40 then n = -40.
The sum of the first forty positive integers can be calculated using the formula for the sum of an arithmetic series, which is (n/2)(first term + last term) where n is the number of terms. In this case, the sum is (40/2)(1 + 40) = 820.
The sum of the interior angles of a convex polygon with n sides is given by (n-2)x180o. So for a 40 sided polygon n=40; thus (40-2)x180o = 38x180o = 6840o.
The sum of the angles of a regular n-sided polygon is equal to (n - 2) x 180 degrees.Therefore, the sum of the angles of a regular 40-sided polygon (tetradecagon) is equal to (40 - 2) x 180 = 6840 degrees. Therefore, 6840 refers to the sum of the degrees, not the number of diagonals.The number of diagonals of an n-sided polygon is given by n(n-3)/2. So a 40-sided polygon has 40*37/2=740 diagonals.
The sum of the interior angles of any regular polygon of n sides is equal to 180(n - 2) degrees. 6840 degrees
The sum of the interior angles of an n-gon is (n-2)*180 degrees. So, for a 40-gon, the sum of the interior angles would be 38*180 = 6840 degrees. If the 40-gon was not regular that is as far as you could go. But if it was a regular n-gon, then all its interior angles are equal, and each would be of 6840/40 = 171 degrees.
Three consecutive integers whose sum is 117 are 38, 39, and 40. N + (N+1) + (N+2) = 117 3N + 3 = 117 3N = 114 N = 38
Let's denote the five consecutive numbers as n, n+1, n+2, n+3, and n+4. The sum of these numbers is given by n + (n+1) + (n+2) + (n+3) + (n+4) = 5n + 10 = 40. Solving for n, we get n = 6. Therefore, the five consecutive numbers are 6, 7, 8, 9, and 10.
The sum of n and 5 is n+ 5
If the polygon has n sides, the sum of the interior angles is (n - 2)*180 degrees. So (n - 2)*180 = 6840 (n - 2) = 6840/180 = 38 So n = 38 + 2 = 40 sides.
In C: #include <stdio.h> int main(void) { int i, sum=0; for (i=10; i<=40; i+=2) { sum += i; } printf("%d\n", sum); return 0; }
#include<stdio.h> #include<conio.h> main() { int n,sum=0; printf("enter n value"); scanf("%d",n); while(n!=0) { n=n/10; sum=sum+n; n=n%10; } printf("sum is=%d",sum }
void main () { int no1, sum, n; clrscr() sum = 0; n = 1; printf("\n enter the number to which sum is to be generated"); scanf("%d",&no1); while(n<=no1) { sum=sum+n; n=n+1 } printf("\n the sum of %d = %d, no1, sum"); getch (); }