You are on page 1of 2

#include<stdio.

h>

#include<conio.h>

#include<string.h>

int main()

char s1[15]="welcome";

char s2[10]="hello";

clrscr();

puts(s1);

puts(s2);

strcat(s1," ");

strcat(s1,s2);

puts(s2);

getch();

return 0;

Output
#include<stdio.h>

int main()

int n;

printf("Enter an integer\n");

scanf("%d",&n);

if(n%2==0)

printf("Even\n");

else

printf("Odd\n");

return 0;

Output

You might also like