0% found this document useful (0 votes)
14 views

C Micro Proj

Uploaded by

up71940
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

C Micro Proj

Uploaded by

up71940
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

MICRO- PROJECT

Programing in c

GOVERNMENT POLYTECHNIC NANDURBAR.


MICRO - PROJECT
2022-2023

Semester 2
Branch: - Computer Engineering

MSBTE

Subject: - programing in c

Project Title: -
Project submitted to GOVERNMENT POLTECHNIC
NANDURBAR.

Under The Guidance Of


Prof.
Lecturer in programing in c
MAHARASHTRA STATE BOARD OF TECHNICAL,
MUMBAI

Subject: - programing in c. Subject code: - 22226


Subject Teacher: - Prof.

ROLL NO. ENROLLMENT NO. NAME OF STUDENT

1101 2214320034 Patel Chanchal krishnabhai

(Name End Sign. Of Faculty)


Prof.
Maharashtra State Board of Technical, Education, Mumbai

CERTIFICATE

MSBTE
This Is Certify That Mr. / MS. …………………………………………………………Roll No………………
Enrollment No. Is ....................................First Semester of Diploma in Electrical
Engineering Of Institute Government Polytechnic, Nandurbar Has Completed
The Micro Project Satisfactorily In Subject Applied Mathematics (22201) For
The Academic Year 2022-2023 As Prescribed In the Curriculum.

Place:
Enrollment no:
Date:
Exam seat no:

Signatures and stamp

Subject Teacher Head of Department


(Prof. (Prof. S. N. Patil)

Principle
Government Polytechnic, Nandurbar
Q1. Write a program to read 10 numbers in a array and arrange it in Ascending order

#include<stdio.h>
#include<conio.h>
Void main();
{
int a[10], sum, I;
float avg;
Clrscr();
Printf(“enter ten number”);
For()or(i=0; i<=9;i++);
{ scanf(“%d, &a(I) ;
Sum=sum+a(i) ;
}
Avg=sum/10;
printf(“sum=%d”, sum);
printf(“avg=%f”, avg);
getch();
}
Q2. Write a program to accept the value of year as input from the
Keyboard & print whether it is a leap year or not.

#include<stdio.h>
#include<conio.h>
void main() {
int year;
clrscr();
printf("Enter year");
scanf("%d",&year);
if(year%4==0) {
printf("Year %d is a leap year",year);
} else {
printf("Year %d is not a leap year",year);
}
getch();
}
Q3. Write a program for addition of two 3 x 3 matrices

#include<stdio.h>
#include<conio.h>
Void main()
{
Int a[3][3],b[3][3],c[3][3],I,j;
Clrscr();
Printf(“Enter first matrix elements:\n”);
For(i=0;i<3;i++)
{
For(j=0;j<3;j++)
{
Scanf(“%d”,&a[i][j]);
}
}
Printf(“\nEnter second matrix elements:\n”);
For(i=0;i<3;i++)
{
For(j=0;j<3;j++)
{
scanf("%d",&b[i][j]);
}
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
c[i][j]=a[i][j]+b[i][j];
}
}
printf("\n\nAddition of two matrices is:");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t",c[i][j]);
}
}
getch();
}
Q4. Write a program to read two strings and find whether they are equal Or not.

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char st1[20],st2[20];
printf(“enter string 1”);
scanf(“%s”,st1);
printf(“enter second string”);
scanf(“%s”,st2);
if(strcmp(st1,st2)==0)
printf(“\nboth strings are equal”);
else
printf(“\nstrings are not equal”);
}
Q5. Write a program to print Fibonacci series upto given number entered by user

#include<stdio.h>

Int main()

Int n1=0,n2=1,n3,I,number;

Printf(“Enter the number of elements:”);

Scanf(“%d”,&number);

Printf(“\n%d %d”,n1,n2);//printing 0 and 1

For(i=2;i<number;++i)//loop starts from 2 because 0 and 1 are already printed

N3=n1+n2;

Printf(“ %d”,n3);

N1=n2;

N2=n3;

Return 0;

}
Comment/Suggestions about team work/leadership/inter-
personal Communication (If Any):

Marks out Marks out of 4 Tota


Rol Studen of 6for for lout
Performance performance
l t Name in oral / of
ingroup
No activity presentatio 10
n
1101 Patel
Chanchal

( )

Signature with Name and Designation of the Faculty Member


Thank you

You might also like