Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to calculate this function?

0 votes
asked Oct 23, 2018 by anonymous
f(x,y)= x*cos(y)        y in degree

1 Answer

0 votes
answered Oct 29, 2018 by anonymous
import math.h

float f(int x,int y){

return x*cosine(y)

}
commented Nov 1, 2018 by anonymous
#include <stdio.h>

#include <math.h>

int main()

{float b;


 float f(int x,int y){
  return x*cos(y);
}

  b=f(1,0);
  printf("%f",b);

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...