A

@Athul

program to check whether a given number is positive ,negative or zero

C
3 years ago
#include<stdio.h> int main() { int num; scanf("%d",&num); if(num == 0) printf("Neither positive nor negative");

grade of a student

C
3 years ago
#include <stdio.h> int main() { int a ,marks; printf("Enter the marks\n"); scanf("%d",&marks); if(marks>85 && marks<=100) { printf("student has secured grade A"); }

greatest of three numbers

C
3 years ago
#include <stdio.h> int main() { int a,b,c; printf("to find the greatest of three numbers\n"); scanf("%d%d%d", &a,&b,&c); if(a>b&&a>c) { printf("a is greater than b and c"); }

c program to find greatest of two numbers

C
3 years ago
#include <stdio.h> int main() { int x,y; printf("Enter the two numbers \n"); scanf("%d%d",&x,&y); if(x>y) { printf("x is greater than y\n");

quotient of two numbers

C
3 years ago
#include <stdio.h> int main() { int a,b,c; printf("Enter the value of two numbers a and b:\n"); scanf("%d%d",&a,&b); c=a/b; printf("the quotient of the two numbers;%d",c); return 0; }

C PROGRAM TO FIND QUOTIENT AND REMAINDER

C
3 years ago
#include <stdio.h> main() { int num1,num2,quotient, remainder; printf("enter the first number\n"); scanf("%d",&num1); printf("enter the second number\n"); scanf("%d",&num2); quotient = num1/num2 ;

C PROGRAM TO MULTIPLY 2 FLOATING NUMBERS

C
3 years ago
#include <stdio.h> main() { float num1,num2,average; printf("Enter the first number\n"); scanf("%f",&num1); printf("Enter the second number\n"); scanf("%f" ,&num2); average=(num1+num2)/2;

C PROGRAM TO MULTIPLY 2 FLOATING NUMBERS

C
3 years ago
#include <stdio.h> main() { float num1 , num2,product; printf("Enter the first float number\n"); scanf("%f",&num1 ); printf(" Enter the second float number\n"); scanf("%f" ,& num2 ); product= num1*num2;