-
Notifications
You must be signed in to change notification settings - Fork 0
/
C_hw_format.c
55 lines (47 loc) · 1.08 KB
/
C_hw_format.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
Problem: <Problem here>
For example:
Test | Result
------------------------------------------------
|
|
|
------------------------------------------------
|
|
|
------------------------------------------------
|
|
|
*/
#include <stdio.h>
#include <math.h>
#include <string.h>
//function prototype(s)
float _function_name_(int var_1, *char var_2, float var_3);
/*---------------------------------------------------------------------------------------------------------------------------------*/
//main function
int main(void)
{
//declare vars
int var1 =;
*char var2[] =;
float var3 =;
//functions
printf("%.3f", _function_name_(var1, var2[], var3));
return 0;
}//end main
/*---------------------------------------------------------------------------------------------------------------------------------*/
//fuction(s) declaration
float _function_name_(int var_1, *char var_2, float var_3)
{
//declare vars
float result = 0;
//functions
for(int i=0; i<len; i++)
{
result =;
}
return result;
}//end _function_name_