

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Programming Labs for the 1st year of programming at the Technical University of Dnipro
Typology: Summaries
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Условие: Найти внутренний угол и сумму внутренних углов правильного выпуклого n-угольника. При вычислении использовать формулы: ,. Код: #include
// output ; printf ("alfa: %.3f radian\n", alfa); printf ("sum: %.3f radian\n", sum); // in degreeses ; alfa = pid(n-2)/n; sum = pid(n-2); // output ; printf ("alfa: %.3f degrees\n", alfa); printf ("sum: %.3f degrees\n", sum); printf ("\n"); printf("Thank you for attention!\n"); printf (" P.S. All rights reserved\n"); } Результат: