mirror of
https://github.com/Hizenberg469/C1-Linux_SYS_Prog-AS-.git
synced 2026-04-19 18:32:24 +03:00
How to make Makefile?
This commit is contained in:
37
Makefile_Assignment/main.c
Normal file
37
Makefile_Assignment/main.c
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* =====================================================================================
|
||||
*
|
||||
* Filename: main.c
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 04/02/24 07:38:54 PM IST
|
||||
* Revision: none
|
||||
* Compiler: gcc
|
||||
*
|
||||
* Author: YOUR NAME (),
|
||||
* Organization:
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
|
||||
#include "common_math/common_math.h"
|
||||
#include "complex_math/complex_math.h"
|
||||
#include "trig_math/trig_math.h"
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv){
|
||||
double res, a = 45.0, b = 90.0;
|
||||
complex_n_t cres, ca,cb;
|
||||
res = a + b;
|
||||
printf("two numbers added = %f\n", res);
|
||||
printf("sine of %f = %f\n", a, sine(a));
|
||||
ca.re = 1.0, ca.imag = 2.0;
|
||||
cb.re = 2.0, cb.imag = 3.0;
|
||||
cres = cadd(ca, cb);
|
||||
printf("adding two complex numbers : %f + %f\n", cres.re, cres.imag);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user