B

@B_Adhvith103

to check if a number is less than 100 or not. itis less check even or odd

C
2 years ago
#include <stdio.h> int main() { int a; printf("Enter the numebr:\n"); scanf("%d",&a); if (a>100) {printf("%d",a);} else if (a<=100)

print the square of a number if it is less than 10

C
2 years ago
#include <stdio.h> int main() { int a; printf("Enter the number you want to square:\n"); scanf("%d",&a); if (a<=10) {printf("The square of the given number is %d", a*a);}

take two numbers and divides the first number by the second number.

C
2 years ago
#include <stdio.h> int main() { float a,b,c; printf("Enter the first number:\n"); scanf("%f",&a); printf("Enter the second number:\n"); scanf("%f",&b); if (a!=0) {c=b/a;

Days in switch case

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter the day you want to see(1-7) :"); scanf("%d",&x); switch (x) { case 1:

Write a C program to print weekday based on given number.

C
2 years ago
#include <stdio.h> int main() { int a; printf("Enter the weekday you want to see(1-7) : \n"); scanf("%d",&a); if (a == 1) {printf("Monday");} else if(a == 2) {printf("Tuesday");}

Compare Two Input Given by the user and Show the output

C
2 years ago
#include <stdio.h> int main() { int a,b; printf("Enter a:\n"); scanf("%d",&a); printf("Enter b:\n"); scanf("%d",&b); if (a>b) {printf("a is greater than b");}

Eligibility for Marriages

C
2 years ago
#include <stdio.h> int main() { int age; char Gen; printf("Enter the Gender of the Candidate(M/F):"); scanf("%c",&Gen); printf("%c\n",Gen); if (Gen=='M') {printf("Enter the Age of the Candidate: ");

Write a program to calculate the net amount by accepting the amount values from the user.

C
2 years ago
#include <stdio.h> int main() { int x; float y; printf("Enter the net amount you have purchased:\n"); scanf("%d",&x); if (x>=1000) {printf("you got 10% discount \n");

Write a C program to evaluate the result of a student by accepting marks in three subjects.

C
2 years ago
#include <stdio.h> int main() { int x,y,z,avg,tot; printf("Enter the mark of first subject : "); scanf("%d",&x); printf("%d\n",x); printf("Enter the mark fo second subject : "); scanf("%d",&y); printf("%d\n",y);

Write a program to check whether the candidate is eligible for voting or not by accepting the age

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter the age of the candidate for voting rights: "); scanf("%d",&x); printf("%d\n",x); if (x>=18) {printf("The Candidate is Eligible for Voting");} else

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

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter the number you want to check: "); scanf("%d",&x); printf("%d \n",x); if (x==0) {printf("The number is Zero");} else if (x>=0)

Write a C program to check whether the given number is of multiple of 7 or not

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter the number you wnt to check: "); scanf("%i",&x); printf("%i \n",x); printf("-------------------------\n"); if (x % 7 == 0)

c program calculate the grade of a student with specific marks

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter the marks: "); scanf("%i",&x); printf("%i \n",x); if (x<=100 && x>85) {printf("The Gade of the student is A");}

c program if a numberis even or odd

C
2 years ago
#include <stdio.h> int main() { int x; printf("Enter a number: "); scanf("%d",&x); printf("%d\n",x); if (x % 2 == 0) {

C Program t ofind the greatest number out of 3

C
2 years ago
#include <stdio.h> int main() { int x,y,z; printf("Enter the first number: "); scanf("%d",&x); printf("%d\n",x); printf("Enter the second number: "); scanf("%d",&y);

Program in C FInd the greatest bewteen 2 numbers

C
2 years ago
#include <stdio.h> int main() { int x,y; printf("Enter the first number:\n "); scanf("%d",&x); printf("Enter the second number:\n "); scanf("%d",&y); if (x>y)

C PROGRAM TO FIND QUOTIENT AND REMAINDER

C
2 years ago
#include <stdio.h> int main() { int Divd,Dev,quot,remi; printf("Enter number 1:"); scanf("%i",&Divd); printf("%i\n",Divd); printf("Enter number 2:"); scanf("%i",&Dev);

C PROGRAM TO FIND THE AVERAGE OF TWO NUMBERS

C
2 years ago
#include <stdio.h> int main() { int num1,num2,avg; printf("Enter First Number: "); scanf("%i",&num1); printf("%i\n",num1); printf("Enter Second Number: "); scanf("%i",&num2);

C PROGRAM TO MULTIPLY TWO FLOATING NUMBERS

C
2 years ago
#include <stdio.h> int main() { float num1,num2,m; printf("Enter number 1: "); scanf("%f",&num1); printf("%f \n",num1); printf("Enter number 2: "); scanf("%f",&num2); printf("%f\n",num2);

Program 3

C
2 years ago
#include <stdio.h> int main() { float PI=3.14; int radius; float area; printf("Enter the radius of the circle: "); scanf("%i",&radius); printf("%i \n",radius);