با استفاده ازین برنامه میتونید سینوس و کسینوس یک زاویه رو وحاسبه کنید
#include <stdio.h>
#include <conio>
#include <math.h>
void main()
{
int x;
float s, c ;
printf("pleas enter degree:");
scanf("%d", &x);
s = sin ( x );
c = cos ( x );
printf("sin=%f,cos=%f", s, c);
getch();
}
#include <conio>
#include <math.h>
void main()
{
int x;
float s, c ;
printf("pleas enter degree:");
scanf("%d", &x);
s = sin ( x );
c = cos ( x );
printf("sin=%f,cos=%f", s, c);
getch();
}
هیچ نظری موجود نیست:
ارسال یک نظر