Title / Description
Code // // 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; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code