Sign in to follow this  
Cornel Iulian

[C] Tabelare din grad in grad a functiei cosinus (0-100 grade)

1 post in this topic

Cerinta: Sa se tabeleze din grad in grad, intre 0 si 100 grade, valorile functiei cosinus (cosinus de 90 trebuie sa fie afisat ca 0!). Afisarea se va face astfel incat sa se poata citi, ecran cu ecran, toate valorile calculate.

#include <stdio.h>
#include <conio.h>
#include <math.h>

int main(void)
	int poz;
	double x;
	for(int i=0;i<=100;i++)
		printf("cos(%d)= %g\n",i,x);
			printf("cos(90)= 0!\n");
		printf("\npress any key...\n");


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this