Code Snippets C

#include
#include
int main(void)
{
double val = -2.0;
do {
printf("Sine of %f is %f.\n", val, sin(val));
val += 0.1;
} while(val<=3.0);
return 0;
}