M

@MEGHADEESHWAR

simple calculator

C
2 years ago
#include<stdio.h> #include<math.h> int main() { int num1,num2; char aa; printf("enter num1\n"); scanf("%d",&num1); printf("enter operator\n");

odd or even

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

POSITIVE OR NEGATIVE

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

hrrr

C
2 years ago
#include <stdio.h> int main() { int a,b; if(a==b) { printf("true"); } else{ printf("false");

if else

C
2 years ago
#include <stdio.h> int main() { int a=2; int b=8; if (a!=b) { printf("true"); } else{

jgjgj

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); printf("%d",a==2&&b==2); }

arm numbers

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int num, a,r, n = 0; double result = 0.0; printf("Enter an integer: "); scanf("%d", &num); a = num; while (a != 0) {

area of ciecle

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int r,p; float a; printf("enter the radius of the circle:\n"); scanf("%d", &r); p=pow(r,2);

roots of the quadratic equation

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int a,b,c,p; int d ,root1,root2,s; printf("enter the cofficient of x^2 in quadratic equation:\n "); scanf("%d", & a);

4

C
2 years ago
#include <stdio.h> #include <math.h> double calculateNaturalLog(double x, int n) { if (x <= -1) { printf("Error: Natural logarithm is undefined for x <= -1.\n"); return 0; } double result = 0.0;

3

C
2 years ago
#include <stdio.h> #include <math.h> int main() { double x; int n; printf("Enter the value of x (in radians): \n"); scanf("%lf", &x);

2

C
2 years ago
#include <stdio.h> #include <math.h> int main() { double x; int n; printf("Enter the value of x (in radians): \n"); scanf("%lf", &x);

1

C
2 years ago
#include <stdio.h> int main() { double x; int n; printf("Enter the value of x: \n"); scanf("%lf", &x); printf("Enter the number of terms (n): \n");

7

C
2 years ago
#include <stdio.h> int main() { int n; printf("Enter the number of times you want to print your name: "); scanf("%d", &n); if (n <= 0)

6

C
2 years ago
#include <stdio.h> int main() { int count = 1; printf("First 10 natural numbers:\n"); while (count <= 10) {

5

C
2 years ago
#include <stdio.h> int main() { int n, first = 0, second = 1, next; printf("Enter the number of terms: "); scanf("%d", &n); printf("Fibonacci Series up to %d terms: \n", n);

4

C
2 years ago
#include <stdio.h> int main() { int number, isPrime = 1; printf("Enter a positive integer: "); scanf("%d", &number); if (number <= 1)

3

C
2 years ago
n

2

C
2 years ago
#include <stdio.h> int main() { int number; char choice; do { int sum = 0;

1

C
2 years ago
#include <stdio.h> int main() { for (int i = 1; i <= 10; i++) { printf("%d\n", i); } return 0;