Convert Char To Uppercase In C

Convert Char To Uppercase
AIM: Program on function to scan a character string and Convert Char To Uppercase 2) ALGORITHM: step1: start Step2: take a string a function of return value data type is void str upper Step3: read a string While (s[i]! =’\0’) { if((s[i]>=’a’) &&(s[i]<=’z’)) s[i]=s[i]-32; i++; } display changed string....
Continue reading »

Read Number Of Students Data In C

Read Students Data
AIM: program to read number of student data 2) ALGORITHM: step1: take a character array a, integers r,s,I,j and n step2: read the value of n step3: for(i=0;i<n;i++) Enter rollno,name,,,,,, Read these and enter 5 subject marks s[i][5]=0; for(j=0;j<5;j++) { scanf(“%d”,s[i][j]); s[i][5]=s[i][5]+s[i][j]; } step4:display n[i],r[i],s[i][j] step5:stop 3) FLOWCHART:...
Continue reading »

Print Fibonacci Series In C

fibonacci Serise
AIM: Program to print Fibonacci series 2) ALGORITHM: Step1: start Step2: read I,x,f,f1,f2 Step3: f=0,f1=1,f2=1 Step4: do I++ F1=f2 F2=f F=f1+f2 While (i<=n) Step5: print f Step6: stop 3) FLOWCHART: Program to print Fibonacci series 4) PROGRAM: Program to print Fibonacci series void main() { int i,n,f,f1,f2; printf(“enter...
Continue reading »

Product Of Two Matrices In C

MatrixMultiplication
AIM: Program to print product of two matrices 2) ALGORITHM: Step1: start Step2:read I,j,k,a[3][3],b[3][2],c[3][2] Step3: read a[3][3] & b[3][2] Step 4:i=0,j=0,k=0 Step5: if i Step6: if j Step7: if k Step8: c[i][j]=c[i][j]+a[k][j]*b[i][k] Step9: print a[i][j],b[i][j],c[i][j] Step 10: stop 3) FLOWCHART: Program to print product of two matrices. 4)...
Continue reading »

Total Of Odd Integers Program In C

total of even integers
AIM: Program to find total of odd integers 2) ALGORITHM: step1: start step2: for(i=0;i<20;i++) { if(a[i]%2==1) sum=sum+a[i]; } step3:stop 3) FLOWCHART: 4) PROGRAM: Program to find total of odd integers #include main() { int a[20],i,sum=0; printf(“enter 5 integrs”); for(i=0;i<5;i++) scanf(“%d”,&a[i]); for(i=0;i<5;i++) { if(a[i]==1) sum=sum+a[i]; } prinf(“sum =%d”,sum); getch();...
Continue reading »

Total Of Even Integers In C

total of even integers
AIM: Program to find total of even integers 2) ALGORITHM: step1: start step2: for i=0;i<20;i++ if(a[i]%2==0) sum=sum+a[i]; step3: stop To find total of even integer. 3) FLOWCHART: Program to find total of even integers 4) PROGRAM: Program to find total of even integers #include<stdio.h> main() { int a[20],i,sum=0;...
Continue reading »