-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain 32.c
36 lines (32 loc) · 787 Bytes
/
main 32.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
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
void namaste();
void bonjour();
int main()
{
char a;
printf("Enter 'I' for indian and 'F' for French:");
scanf("%s" , &a);
if(a == 'I')
{
namaste();
}
else
{
bonjour();
}
return 0;
}
void namaste()
{
printf("Namaste!");
}
void bonjour()
{
printf("Bonjour");
}