C Program to find sum of two numbers
C Program to find sum of two numbers#include<stdio.h>int main(){ int a, b, sum; printf("\nEnter two no: "); scanf("%d %d", &a, &b); sum = a + b; printf("Sum : %d", sum); r...
// To check whether the input number is positive, negative or zero
#include <stdio.h>
#include<conio.h>
int main()
{
int A; // Variable A is declared as integer
printf("Enter the number A: ");
scanf("%d", &A); // Here, & provides the link to the input and gets stored in A. %d symbolizes the integer value.
if (A > 0)
printf("%d is positive.", A);
else if (A < 0)
printf("%d is negative.", A);
else if (A == 0)
printf("%d is zero.", A);
getch(); // ( In this case) It is used to pause the screen to view the output.
}