pygments demo

C code posted
created at 13 Apr 20:53

Edit | Back
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
//
//  main.c
//  Key
//
//  Created by Wang-ZHONG on 07/04/2018.
//  Copyright © 2018 Wang-ZHONG. All rights reserved.
//

#include <stdio.h>  //pour user printf() et scanf()
#include "test.h"
#include<stdlib.h>
#include <string.h>
//#include "test.c"
    
//int addition(int num1, int num2);//déclaration de la fonction
#include<stdio.h>
#include<string.h>

typedef struct professor
{
    char p_name[50];
    int p_sal;
} prof;
int main (void)
{
    FILE *fileName;
    fileName = fopen("anything.txt","r");
    fprintf(fileName, "%s %s %d", "Welcome", "to",  2018);
    fclose(fileName);
    return(0);
}


int addition(int *a, int *b)
{
    return *a+*b;
}
float facto(int nbr)
{
    float f=1;
    int i=1;
    while(i<=nbr)
    {
        f=f*i;
        i++;
    }
    return f;
    
}
839 Bytes in 2 ms with coderay