Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

emonyi / IAX0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit cf329a99 authored 6 years ago by emonyi's avatar emonyi
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Update Homework1Ccode.c

parent 6e82c5c1 master
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 3 deletions
  • Homework1/Homework1Ccode.c
Homework1/Homework1Ccode.c
View file @ cf329a99
......@@ -16,7 +16,6 @@
int main(void)
{
//intialization of variables
double t;
float A=0;
int i=0;
int N=0;
......@@ -54,10 +53,10 @@ int main(void)
{
//mathematical equation
x += i*(H);
y =(pow(sin(t+5), 2)+ cos(t))/(x + exp(t+3));
y =(pow(sin(x+5), 2)+ cos(x))/(x + exp(x+3));
//output print statement
printf(" %d\t %0.2f\t\t %0.4f\n",N+1,x,y);
printf(" %d\t %0.2f\t\t %0.25f\n",N+1,x,y);
i++;
}
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment