A

@adarshb2005

sum of square below 10

C
2 years ago
#include <stdio.h> int main() { int num,sum; if(num>=10) sum=num*num; {printf("the num is equal or below 10");} scanf("%d%d", &num,&sum); else {printf("the num is not equal or below 10");}

Write a program that reads two numbers and divides the first number by the second number. If divisi

C
2 years ago
#include <stdio.h> int main() { double num1, num2, result; printf("Enter the first number: "); scanf("%lf", &num1); printf("Enter the second number: ");

Write a C program to analyses a character that is typed from the terminal (user) and classifies it

C
2 years ago
#include <stdio.h> int main() { char character; printf("Enter a character: "); scanf("%c", &character); if ((character >= 'a' && character <= 'z') || (character >= 'A' && character <= 'Z')) { printf("The character '%c' is an alphabet.\n", character); } else if (character >= '0' && character <= '9') {

odd or even

C
2 years ago
#include <stdio.h> int main() { int num1; if(num1>=100) printf("this number is below 100\n"); else printf("this number is not below 100\n"); printf("the given number\n"); scanf("%d",&num1);

division of 50.50 and 2.00 is 25.25

C
2 years ago
#include <stdio.h> int main() { float num1,num2,quotient; printf("enter the values of num1\n"); scanf("%f",&num1); printf("enter the values of num2\n"); scanf("%f",&num2); quotient=num1/num2;

two float number multiply

C
2 years ago
#include <stdio.h> int main() { float a,b,product; {printf("enter the first values\n");} scanf("%f",&a); {printf("enter the second values\n");} scanf("%f",&b); product=a*b; { printf("the is multiple of two floating numbers is=%2lf",product);

ADD THREE NUMBERS AND GET 2 PRCISION POINT AFTER THE DIGIT

C
2 years ago
#include <stdio.h> int main() { float a=10.257; float b=2589.257; float d=18.00; float sum =a+b+d; { printf("ENTER THE VALUES OF sum\n"); }

eligible for marriage

C
2 years ago
#include<stdio.h> int main() { int age; char gender; printf("enter the gender=%c",gender); scanf("%c",&gender); printf("enter the age=%d",age); scanf("%d",&age); if(gender=="m"||gender=="M" && age>=21)

WEEKDAYS BYB ENTERING NUMBERS 1 TO 7

C
2 years ago
#include <stdio.h> int main() { int days; printf ("ENTER THE NUMBER 1 TO 7:\n"); scanf("%d",&days); switch (days) { case 01 :printf("SUNDAY"); break; case 02 :printf("MONDAY");

CALCULATE THE NET AMOUNT BY ACCEPTING THE AMOUNT VALUE FROM THE USER

C
2 years ago
#include <stdio.h> int main() { float a ; printf("ENTER THE AMOUNT:\n"); scanf("%f",&a); if(a>=1000) { printf("DISCOUNT PERCENTAGE=10%\n"); }

WHICH OF THE TWO IS SMALLER AND WHICH OF THE BIGGER

C
2 years ago
#include <stdio.h> int main() { double value1,value2; printf("ENTER THE NUMBERS:\n"); scanf("%lf",&value1); scanf("%lf",&value2); if(value1==value2) { printf("THE VALUES ARE EQAUL:\n");

THE CANDITATE IS ELIGIBLE VOTING OR NOT

C
2 years ago
#include<stdio.h> int main() { int age; printf("ENTER THE AGE:\n"); scanf("%d",&age); if(age>=18) { printf("THE CANDITATE IS ELIGIBLE FOR VOTING"); }

POSITIVE OR NEGATIVE OR ZERO

C
2 years ago
#include <stdio.h> int main() { int num; printf("ENTER THE NUMBER:\n"); scanf("%d",&num); if(num>0) { printf("THE GIVEN NUMBER IS POSITIVE NUMBER"); }

MULTIPLE OF 7 OR NOT

C
2 years ago
#include<stdio.h> int main() { int num; printf("ENTER THE NUMBER:\n"); scanf("%d",&num); if(num%7==0) { printf("THE NUMBER IS MULTIPLE OF 7"); }

calculate the grade of students

C
2 years ago
#include <stdio.h> int main() { int a; printf("enter the value \n"); scanf("%d",&a); if(a>85 && a<=100) { printf("%d is A",a); }

odd or even

C
2 years ago
#include <stdio.h> int main() { int num; printf("enter the integer number:\n"); scanf("%d",&num); if(num%2==0) { printf("%d is even",num); }

consider 3 numbers and bring the biggest number

C
2 years ago
#include <stdio.h> int main() { int a,b,c; printf ("enter the first number\n"); scanf("%d",&a); printf ("enter the second number\n"); scanf("%d",&b); printf ("enter the third umber\n"); scanf("%d",&c);

consider 2 nos and bring the biggest no

C
2 years ago
#include <stdio.h> int main() { int a,b; printf ("enter the first number\n"); scanf("%d",&a); printf ("enter the second number\n"); scanf("%d",&b);

find the quotient and remainder

C
2 years ago
#include <stdio.h> int 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);

find the average of 2 floating numbers

C
2 years ago
#include <stdio.h> main() { float a,b,sum; printf("enter the first number:\n"); scanf("%f",&a); printf("enter the second number:\n"); scanf("%f",&b); sum= (a+b)/2; printf("enter the average of two float number = %f",sum);