B

@B_Adhvith103

taylor series sin program

C
2 years ago
#include <stdio.h> int main() { int i,n; float a,sum=1,c=1; printf("Enter the value of x: \n"); scanf("%d",&i); printf("Enter the value for n : \n"); scanf("%d",&n);

write a c program to calculate the remainging one side and two angles

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int i,a,b; float pi=3.414; float p,q,r,angle,deg; printf("Enter the two sides of triangle: \n"); scanf("%d %d",&a,&b); printf("Enter one angle: \n");

write a c program to find the hcf and lcm of two numbers

C
2 years ago
#include <stdio.h> int main() { int n1, n2, i, gcd,lcm,hcf; printf("Enter two integers:\n"); scanf("%d %d", &n1, &n2); for(i=1; i <= n1 && i <= n2; ++i) { if(n1%i==0 && n2%i==0) gcd = i;

Program to check whether a number is Armstrong no or not using C Language

C
2 years ago
#include <stdio.h> int main() { int i,sum=0,r,n1; printf("enter a num:"); scanf("%d",&i); n1=i; while(i>0) { r=i%10;

Input from user untill the user gives negative number

C
2 years ago
#include <stdio.h> int main() { int i; do { printf("Enter the value of i:\n"); scanf("%d",&i); if(i<1) {

Get an integer input from user and print how many times it can be divided by 2 till it becomes 1.

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

pattern printing #1

C
2 years ago
#include <stdio.h> int main() { int i; do { printf("enter the number:\n"); scanf("%d",&i); } while (i!=100);

pattern printing #1

C
2 years ago
#include <stdio.h> int main() { int i,j,n=5; int a=1; for (i=1;i<=n;i++) { for (j=1;j<=i;j++) {

pattern printing #2

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

Print number continuously from 1 to 100 except 25,50 and 75.

C
2 years ago
#include <stdio.h> int main() { int i=1,j=100; for (i=1;i<=j;i++) { if (i!=25 && i!=50 && i!=75) printf("%d\n",i); }

Write a C program to generate multiplication table for given number

C
2 years ago
#include <stdio.h> int main() { int i,j,n; printf("Enter an integer: \n"); scanf("%d", &n); printf("Enter the limit:\n"); scanf("%d",&j); for (i=1;i <= j;i++) {

C Program to Find Sum of All Even Numbers Between 1 to N

C
2 years ago
#include <stdio.h> int main() { int num, count = 1, sum = 0; printf("Enter a integer number\n"); scanf("%d", &num); while(count <= num)

Program to print table for the given number using while loop in C

C
2 years ago
#include <stdio.h> int main() { int i,j,t,a; printf("Enter the table number you want to see:\n"); scanf("%d",&j); printf("Enter the multiplication limit: \n"); scanf("%d",&t); i=1;

Program to print first 10 multiples of 5 using do while loop

C
2 years ago
#include <stdio.h> int main() { int i,a; i=1; do { a=i*5; printf("%d * 5 =%d\n",i,a);

Program to add two integers using do while loop

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

C Program to Find Sum of All Odd Numbers Between 1 to N

C
2 years ago
#include <stdio.h> int main() { int num, count = 1, sum = 0; printf("Enter a integer number\n"); scanf("%d", &num); while(count <= num)

Write a program to print 5 * 5 box.

C
2 years ago
#include <stdio.h> int main() { int i,j,n=5; for(i=1;i<=n;i++) { for (j=1;j<=n;j++) {printf("* ");} printf("\n");}

Program to print first 10 multiples of 5 using do while loop

C
2 years ago
#include <stdio.h> int main() { int i,a; i=1; while (i<=10) {a=i*5; printf("%d * 5 =%d\n",i,a); i+=1;

Program to print half Pyramid of numbers using n ested loops

C
2 years ago
#include <stdio.h> int main() { int i,j,n; printf("Enter the number: \n"); scanf("%d",&n); for (i=1;i<=n;i++) { for (j=1;j<=i;j++) {printf("* ");}

Program to print your name n times using for loop

C
2 years ago
#include <stdio.h> int main() { int i,n; printf("Enter the number of times the name has to print: \n"); scanf("%d",&n); for (i=1;i<=n;i++) {printf("B.Adhvith Athreya\n");} return 0;