xxxxxxxxxx
print("Hello World"); // Prints Hello world on console
xxxxxxxxxx
#include<stdio.h>
int main() {
char str[] = "Hello, world!";
printf("%s", str);
return 0;
}
xxxxxxxxxx
#include <stdio.h>
int addNumbers(int a, int b)
{
int sum = a + b;
return sum;
}
int main(void)
{
int a = 4;
int b = 7;
printf(addNumbers(a,b));
return 0;
}
xxxxxxxxxx
#include<stdio.h>
// Program to print %
int main()
{
printf("%%");
return 0;
}