// Header file for input output functions
#include <stdio.h>
// Main function: entry point for execution
int main() {
// Writing print statement to print hello world
printf("Hello World");
return 0;
}
// C program to take an integer
// as input and print it
#include <stdio.h>
// Driver code
int main()
{
// Declare the variables
int num;
// Input the integer
printf("Enter the integer: ");
scanf("%d", &num);
// Display the integer
printf("Entered integer is: %d", num);
return 0;
}
// C program to add two numbers
#include <stdio.h>
int main() {
int a, b, sum = 0;
// Read two numbers from the user
printf("Enter two integers: ");
scanf("%d %d", &a, &b);
// Calculate the addition of a and b
// using '+' operator
sum = a + b;
printf("Sum: %d", sum);
return 0;
}
// C Program to check if a number is positive, negative,
// or zero using simple conditional checks
#include <stdio.h>
int main() {
int N = 10;
// Check if the number is zero
if (N == 0) {
printf("Zeri\n");
}
// Check if the number is less than zero
else if (N < 0) {
printf("Negative\n");
}
// If neither, the number is positive
else {
printf("Positive\n");
}
return 0;
}