Category: even semester
C programming 2021 Solution
2) WAP to display all the numbers from 100 to 200 divisible by 4 #include<stdio.h> void main(){ for(int i=100;i<=200;i++) i%4==0? printf(“%d “,i):i; } 3) Create a function int greater(int ,int ) that returns greater number. int greater(int a,int b){ return a>b? a : b; } 5)check if string is palindrome or not #include<stdio.h> #include<string.h> void […]
Continue Readingc progamming 2022 Makeup Solution
2) Write a program to check if two matrices are equal or not. #include<stdio.h> int main(){ int a[100][100],b[100][100]; int r1,c1,r2,c2,i,j,flag=0; printf(“enter rows and columns of first and second matrix\n”); scanf(“%d%d%d%d”,&r1,&c1,&r2,&c2); printf(“enter elements of first matrix”); for(i=0;i<r1;i++){ for(j=0;j<c1;j++){ scanf(“%d”,&a[i][j]); } } printf(“enter elements of second matrix”); for(i=0;i<r1;i++){ for(j=0;j<c1;j++){ scanf(“%d”,&b[i][j]); } } if((r1 == r2) && (c1 […]
Continue ReadingEnglish New course 2022 || BIM Study Notes
unit 1 unit 2 Unit 3 Summary Unit 1- Unit 11
Continue Reading