שפת C/פעולות חשבוניות/תרגילים: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
Atavory (שיחה | תרומות)
אין תקציר עריכה
שורה 149:
{{מוסתר|ta2 = left|פתרון|2=
 
<source lang = "c">
{{להשלים}}
#include<stdio.h>
#include<math.h>
#define PI 3.14
int main()
{
int radius;
printf("Radius: ");
scanf("%d",&radius);
printf("Extent of circuit: %f\n",2*PI*radius);
printf("Territory of circuit: %f",PI*pow(radius,2));
return 0;
}
</source>
 
}}