-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctions.c
More file actions
65 lines (59 loc) · 1.05 KB
/
Functions.c
File metadata and controls
65 lines (59 loc) · 1.05 KB
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
56
57
58
59
60
61
62
63
64
65
#include<stdio.h>
/*
void printHello(){
printf("HelloWorld \n");
}
void printGoodbye(){
printf("Goodbye \n");
}
int main(){
printHello();
printGoodbye();
return 0;
}*/
/*
// Function that print Namaste and Bonjour
void Namaste();
void Bonjour();
int main(){
char ch;
printf("enter f for french and i for indian:");
scanf("%c",&ch);
if (ch=='i'){
Namaste();
}else{
Bonjour();
}
return 0;
}
void Namaste(){
printf("Namaste \n");
}
void Bonjour(){
printf("Bonjour \n");
}*/
/*
// Function of sum of two numbers & product of two numbers
int sum(int x, int y);
void printTable(int n);
int main(){
int a,b,n;
printf("enter first number: ");
scanf("%d",&a);
printf("enter second number:");
scanf("%d",&b);
printf("enter number: ");
scanf("%d \n",&n);
int s = sum(a,b);
printTable(n);
printf("The sum is %d \n",s);
return 0;
}
int sum(int x,int y){
return x+y;
}
void printTable(int n){
for (int i=1;i<=10;i++){
printf("%d \n",i*n);
}
}*/