generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: A C Code which will help at Trigonometry.

Previous Thread :: Next Thread 
superxboy11 is not online. superxboy11
Joined: 31 May 2011
Total Posts: 6541
23 Jul 2012 11:24 AM
#include <​stdio.h>
#include <​math.h>
#include <​stdlib.h>

void Display (double Angle);

int main () {
  Display (.08 * (double)(rand() % 100) - 4.0);
  Display (.08 * (double)(rand() % 100) - 4.0);
  Display (.08 * (double)(rand() % 100) - 4.0);
  return 0;
}

void Display (double Angle) {
  printf ("The sine of %f radians is %f\n",
          Angle, sin (Angle));
  printf ("The cosine of %f radians is %f\n",
          Angle, cos (Angle));
  printf ("The tangent of %f radians is %f\n\n",
          Angle, tan (Angle));
}

Take out your compilers :)

Peace and Humble.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
23 Jul 2012 11:28 AM
or in Lua:

local angle = 0
print("sine of " .. angle .. " = " .. math.sin(angle))
print("cosine of " .. angle .. " = " .. math.cos(angle))
print("tangent of" .. angle .. " = " .. math.tan(angle))

It's not really worth making a whole thread about, it's basic programming.
Report Abuse
superxboy11 is not online. superxboy11
Joined: 31 May 2011
Total Posts: 6541
23 Jul 2012 11:30 AM
Thats right still. i got bored thats why.

Peace and Humble.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
23 Jul 2012 11:33 AM
And exact;y how long did this unbore you?
Report Abuse
superxboy11 is not online. superxboy11
Joined: 31 May 2011
Total Posts: 6541
23 Jul 2012 11:34 AM
Nothing much only 20 secs.

Peace and Humble.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
23 Jul 2012 11:37 AM
A very effective waste of your time then.
Report Abuse
superxboy11 is not online. superxboy11
Joined: 31 May 2011
Total Posts: 6541
23 Jul 2012 11:40 AM
Yeah yeah i need to pass time. anyways i need some help at vb.net in making a executable from 2 codes in a interval of time.

Peace and Humble.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
23 Jul 2012 01:12 PM
You just lost 20sec. of your life, regain it with candy.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
23 Jul 2012 01:20 PM
Because you can really use this in an exam. ;)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image