B

@B_Adhvith103

Student enrollment

C
2 years ago
#include <stdio.h> #include<string.h> struct student { int roll_no; char name[30]; struct Date{ int dd; int mm; int yyyy;

structure students

C
2 years ago
#include <stdio.h> #include <string.h> struct details { char name[100]; int Rollno; int semester_no; float CGPA; char school[100]; char university[100];

structures 4

C
2 years ago
#include <stdio.h> #include<string.h> struct person { int age; char name[100]; }; int main(){ struct person s1;

somthing

C
2 years ago
#include<stdio.h> #include<string.h> int main() { char str[] = "Mech B is the Best"; printf("Enter your String:\n"); scanf("%[^\n]",str); int i,j; for (i = 0; str[i] != '\0'; i++) {

structre code 2

C
2 years ago
#include <stdio.h> #include <ctype.h> int main() { char s[] = "mech b is the best"; int i = 0; while(s[i]) { putchar(toupper(s[i])); i++;

structre code 2

C
2 years ago
#include <stdio.h> struct mys{ int mynum; char myletter; }; int main(){ struct mys s1; struct mys s2; s1.mynum=13;

structre code 1

C
2 years ago
#include <stdio.h> struct myStruct{ int mynum; char myletter; }; int main(){ struct myStruct s1;

Program to check matrix is scalar matrix or not

C
2 years ago
// Program to check matrix is scalar matrix or not. #include <bits/stdc++.h> #define N 4 using namespace std; // Function to check matrix is scalar matrix or not. bool isScalarMatrix(int mat[N][N]) { // Check all elements except main diagonal are // zero or not.

aryy in function

C
2 years ago
#include <stdio.h> float calc(float num[]) { float sum=0.0; for (int i =0;i<6;++i) { sum=sum+num[i]; } return sum;

matrix addition

C
2 years ago
#include <stdio.h> int main() { int arr[2][2]={1,2,3,4}; int brr[2][2]={3,4,5,6}; printf("\n"); int res[2][2]; for (int i=0;i<2;i++) { for (int j=0;j<2;j++)

diamond

C
2 years ago
#include <stdio.h> int main() { int n, c, k, space = 1; printf("Enter number of rows\n"); scanf("%d", &n); space = n - 1;

To Compute Permutation and Combination for given input

C
2 years ago
#include<stdio.h> #include<math.h> int fact(int a) { int i,fact=1; for(i=1;i<=a;i++) { fact=fact*i; }

t ocompute mean.median and mode for a given set of inputs

C
2 years ago
#include <stdio.h> int main() { int n1=1,n2=2,n3=3,n4=4,n5=5,n6=5,n7=7; float mean; mean=(n1+n2+n3+n4+n5+n6+n7)/7; printf("the mean of given numbers: %.2f \n",mean); printf("mode of the given numbers: %d \n",n5); printf("median of the given numbers: %d \n ",n4);

Fibonacci series using do while loop

C
2 years ago
#include<stdio.h> #include<math.h> int main() { int n,a=0,b=1; int fib=0,i; printf("Enter the number of terms:\n "); scanf("%d",&n);

Fibonacci series using while loop

C
2 years ago
#include<stdio.h> #include<math.h> int main() { int n,a=0,b=1; int fib=0,i; printf("Enter the number of terms:\n "); scanf("%d",&n);

Fibonacci series using for loop

C
2 years ago
#include <stdio.h> int main() { int i,n; int a=0,b=1; int fib; printf("Enter the number of terms:\n"); scanf("%d",&n); printf("the first %d terms of the fibonoci series are: \n",n);

write a c program to find roots of quadratic equation

C
2 years ago
#include <stdio.h> #include<math.h> int main() { float a,b,c; float x1,x2; printf("Enter the value of a:\n"); printf("Enter the value of b:\n"); printf("Enter the value of c:\n");

find the area of the cirlce using math.h

C
2 years ago
#include <stdio.h> #include <math.h> int main() { float pi=3.14,r,a; printf("Enter the radius of the circle:\n"); scanf("%f",&r); a=pi*pow(r,2); printf("THE AREA OF THE CIRLCE IS : %.4f",a);

exponent function program

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

taylor series cos program

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