बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

Showing posts with label MCA. Show all posts
Showing posts with label MCA. Show all posts

c program assignment Solved Example

c program assignment,c program solve assignment, C program assignment pdf download, c program assignment question answer pdf download,c program assignment problem,c program assignment list for computer science,c program assignment list,c program assignment list for BSC students,c program assignment list for BCA students,c program assignment list for diploma students, c program assignment list for MCA Student,c program assignment list for IT Student,c program assignment list for MCS students,c program assignment list for M TECH students,c program assignment list for BE students,c program assignment list for INTERVIEW Preparation,c program assignment list for CBSE students,
c program Solve assignment list Beginner,c programming solved example,c programming solved example pdf,c program assignment problem with solution,c program assignment complete assignment for beginner,c program examples,c programming assignment help,c programming assignment questions,c programming assignment questions answer,c programming assignment pdf,c programming assignments for beginners,c program for assignment problem in operational research





Sr.no.
C Program Solved Assignment
1
C program to print your resume
#include
#include
void main()
{
clrscr();
printf("\t\t\t\t\BIO DATA\n\n");
printf("-----------------------------------\n\n");
printf("\t\tName :Prakash Sonar\n\n");
printf("\t\t--------------------------------\n");
printf("\t\tAdd:: Ahmednagarn\n");
printf("\t\t--------------------------------\n");
printf("\t\tContact No::9890476237\n\n");
printf("\t\t--------------------------------\n");
printf("\t\tEmail ID:prakashsonar7@yahoo.co.in\n\n");
printf("\t\t----------------------\n");
printf("\t\tGender::Male\n\n");
printf("--------------------");
getch();
}
2
a) C program to add, subtract, multiply, divide 2 numbers.
#include
#include
void main()
{
int a=100,b=50;
clrscr();
printf("\nAddition=%d",a+b);
printf("\nSubtraction=%d",a-b);
printf("\nMultipication=%d",a*b);
printf("\nDivision=%d",a/b);
getch();
}
b) WAP above C Program after accepting numbers from user.
#include
#include
void main()
{
int a,b;
clrscr();
printf("Enter 1st no");
scanf("%d",&a);
printf("Enter 2nd no");
scanf("%d",&b);
printf("Addition=%d\n",a+b);
printf("subtraction=%d\n",a-b);
printf("Multipication=%d\n",a*b);
printf("Division=%d",a/b);
getch();
}
3
C Program to accept a number & print its square and cube
#include
#include
void main()
{
int a;
clrscr();
printf("Enter a no.....");
scanf("%d",&a);
printf("\nSquare=%d",a*a);
printf("\nQuabe=%d",a*a*a);
getch();
}
4
C program to print ascii value of a given character.
#include
#include
void main()
{
char x;
clrscr();
printf("Enter a chatracter");
scanf("%c",&x);
printf("ASCII value=%d",x);
getch();
}
5
Ramesh’s basic salary is input through the keyboard. His dearness (DA) allowance is 40% of the basic salary, and house rent(HR) allowance is 20% of the basic salary. C program to calculate his gross salary.
6
C Program to accept length & breadth of rectangle & print its area.
#include
#include
void main()
{
int l,b;
clrscr();
printf("Enter length of rectangle:-");
scanf("%d",&l);
printf("Enter breadth of rectangle:-");
scanf("%d",&b);
printf("Area of Rectangle:-%d",l*b);
getch();
}
7
C Program to accept radius of circle & print its area.
#include
#include
void main()
{
float r;
clrscr();
printf("Enter redious of circl:-");
scanf("%f",&r);
printf("Area of circle:-%f",3.14*r*r);
getch();
}
8
C Program to accept radius of a sphere & print its volume (4/3 pr3).
#include
#include
void main()
{
float r;
clrscr();
printf("Enter redious:-");
scanf("%f",&r);
printf("Area of Spher:-%f",4/3*3.14*r*r*r);
getch();
}
9
C Program to accept side of a cube & print its volume(s3).
#include
#include
void main()
{
int x;
clrscr();
printf("Enter No:-");
scanf("%d",&x);
printf("cube of no:-%d",x*x*x);
getch();
}
CONDITION CHECKING
10
C Program to accept two numbers & print which is greater.
# include
# include
void main ()
{
int i,j;
clrscr ();
printf("Enter 1st value");
scanf("%d",&i);
printf("Enter 2nd value");
scanf("%d",&j);
if(i>j)
printf("1st value is greater than 2nd value");
else if(i==j)
printf("1st value is equal with 2nd value");
else
printf("2nd value is greater than 1st value");
getch();
}
11
C Program to accept a number & print if it is positive or negative.
#include
#include
void main()
{
int x,y;
clrscr();
printf("Enter no");
scanf("%d",&x);
if(x>0)
printf("Entered no is positive");
else
printf("enered no is negative");
getch();
}
12
C Program to accept a number & print if it is even or odd.
# include
# include
void main ()
{
int i;
clrscr ();
printf("Enter value");
scanf("%d",&i);
if(i%2==0)
printf("Entered no is EVEN no");
else
printf("Entered no is ODD no");
getch();
}
13
C Program to accept a character & print if it is Capital or Small letter.
# include
# include
void main ()
{
char i;
clrscr ();
printf("Enter a character");
scanf("%c",&i);
if(i>='A'&&i<='Z')
printf("Entered character(%c)is capital",i);
else if(i>='a'&&i<='z')
printf("Entered character(%c)is small",i);
getch();
}
14
C program to accept percentage of the student & print his/her grade.
Percentage
Grade
> 75
Distinction
>= 60 && <= 75
First Class
>= 50 && < 60
Second Class
>= 40 && < 50
Pass Class
< 40
Fail
#include
#include
void main()
{
float x;
clrscr();
printf("Enter percentage of student");
scanf("%f",&x);
if(x>=75&&x<=100)
printf("candidate got distinction with %f percentage",x);
if(x>=60&&x<75 p="">printf("candidate got 1st class with %f percentage",x);
if(x>=50&&x<60 p="">printf("candidate got 2nd class with %f percentage",x);
if(x>=40&&x<50 p="">printf("candidate got pass class with %f percentage",x);
if(x<40 amp="" x="">0)
printf("unfortunatly candidate failed with %f percentage",x);
if(x>100)
printf("you are entered wrong marks %f percentage",x);
if(x<0 p="">printf("you are entered wrong percentage");
getch();
}
15
C Program to calculate Electricity bill as per following rules:
Units consumed
Charges per unit (Rs.)
<= 100 0.50/-
>= 101 && <= 300 0.60/-
>= 301 1.00/-
#include
#include
void main()
{
float x;
clrscr();
printf("Enter electicity units counsumed");
scanf("%f",&x);
if(x<=100)
{
printf("you have %f units consumed\n ",x);
printf("your bill amount=%f",x*0.50);
}
if(x>=101&&x<300 p="">{
printf("you have %f units consumed\n ",x);
printf("your bill amount=%f",x*0.60);
}
if(x>=300)
{
printf("you have %f units consumed \n",x);
printf("your bill amount=%f",x*1);
}
getch();
}
16
C program to check whether given year is leap or not using ternary operator.
# include
# include
void main ()
{
int i;
clrscr ();
printf("Enter year");
scanf("%d",&i);
(i%100==0)?((i%400==0)?printf("leap year"):printf("not leap year")):(i%4==0)?printf("leap year"):printf("not leap year");
getch();
}
SWITCH CASE
17
C calculator program using switch case.
#include
#include
void main()
{
int x,y;
clrscr();
printf("1: Addition\n");
printf("2: Substraction\n");
printf("3: Multipication\n");
printf("4: Division\n");
printf("\n\nEnter your choice");
scanf("%d",&x);
switch(x)
{
case 1: printf("Enter two no");
scanf("%d%d",&x,&y);
printf("Addition=%d",x+y);
break;
case 2: printf("Enter two no");
scanf("%d%d",&x,&y);
printf("Subtraction=%d",x-y);
break;
case 3: printf("Enter two no");
scanf("%d%d",&x,&y);
printf("multipication=%d",x*y);
break;
case 4: printf("Enter two no");
scanf("%d%d",&x,&y);
printf("Division=%d",x/y);
break;
default:printf("enter no between 1 to 4");
}
getch();
}
18
C program to accept a number between 1 to 7.
And print corresponding day of week.
#include
#include
void main()
{
int x;
clrscr();
printf("enter no for checking");
scanf("%d",&x);
switch(x)
{
case 1:
printf("Sunday");
break;
case 2:
printf("Monday");
break;
case 3:
printf("tuesday");
break;
case 4:
printf("wensday");
break;
case 5:
printf("thursday");
break;
case 6:
printf("Friday");
break;
case 7:
printf("Saturday");
break;
default:
printf("please enter no between 1 to 7");
}
getch();
}


19
Accept a digit between 0 to 9 and print it in words.
#include
#include
void main()
{
int x;
clrscr();
printf("enter no for checking");
scanf("%d",&x);
switch(x)
{case 0:printf("zero");
break;
case 1:printf("One");
break;
case 2:printf("Two");
break;
case 3:printf("Three");
break;
case 4:printf("Four");
break;
case 5:printf("Five");
break;
case 6:printf("Six");
break;
case 7:printf("Seven");
break;
case 8:printf("Eight");
break;
case 9:printf("Nine");
break;
default:printf("please enter single");
}
getch();
}
LOOPS
20
C program to find factorial of a number.
# include
# include
void main ()
{
int i,j=1,x;
clrscr ();
printf("Enter no");
scanf("%d",&x);
for(i=1;x>0;x--)
{
i=i*x;
}
printf("Factorial=%d",i);
getch();
}
21
C program to check whether given number is prime or not.
#include
#include
void main()
{
int x,y,z=0;
clrscr();
printf("Enter a no");
scanf("%d",&x);
for(y=2;y{
if(x%y==0)
{
z=1;
}
}
if(z==1)
printf("Not prime no");
else
printf("Prime no");
getch();
}
22
C program to check whether given number is perfect or not.
#include
#include
void main()
{
int x,i,y,z=0;
clrscr();
printf("Enter no");
scanf("%d",&x);
y=x;
for(i=1;i{
if(x%i==0)
{ z=z+i;
}
} if(z==y)
{ printf("Entered no is perfect no.");
}
else
{ printf("Entered no is not perfect no.");
}
getch();
}
23
C program to print sum of first n numbers.
#include
#include
void main()
{
int x,i,z=0;
clrscr();
printf("Enter a no");
scanf("%d",&x);
for(i=1;i<=x;i++)
{
z=z+i;
}
printf("Addititon of n no=%d",z);
getch();
}
24#
C program to accept number and print its prime factors.
# include
# include
void main ()
{
int i,j,z,x=0;
clrscr ();
printf("Enter a no ");
scanf("%d",&z);
for(i=1;i<=z;i++)
{
x=0;
if(z%i==0)
{
for(j=2;j<=i;j++)
{
if(i%j==0)
{
x++;
}
}
if(x==1)
{
printf("prime factor=%d",i);
}
printf("\n");
}
}
getch();
}
DIGITS
25
C program to accept a 4 digit number from user and print its digits.
#include
#include
void main()
{
int n,n1,r,c=0;
clrscr();
printf("Enter the no=");
scanf("%d",&n);
n1=n;
while(n>0)
{
r=n%10;
c=c*10+r;
n=n/10;
}
if(c==n1)
printf("It is a palindromic number");
else
printf("It is not a palindromic number");
getch();
}
26#
C program to accept a number & print the number of digits in it.
#include
#include
void main()
{
long r,c=0;
clrscr();
printf("Enter no");
scanf("%ld",&r);
while(r!=0)
{
r=r/10;
++c;
}
printf("no of digit%d",c);
getch();
}
27#
C program to accept 5 digit numbers from user and print sum of its first and last digit.
#include
#include
void main()
{
int x,y,z;
clrscr();
printf("Enter a number=");
scanf("%5d",&x);
y=x%10;
z=x/10000;
printf("Addition of 1st and last Digit =%d",y+z);
getch();
}
28
C Program to accept a number & print the multiplication of even digits.
#include
#include
void main()
{
int x,i=1,c,z;
clrscr();
printf("Enter a number=");
scanf("%d",&x);
for(;x>0;)
{
z=x%10;
x=x/10;
if(z%2==0)
{
i=i*z;
c=1;
}
}
if(c==1)
printf("multipication of digit=%d",i);
else
printf("\n\t sorry!!!!\n there is no even digit no");
getch();
}
29
C program to check whether given number is Armstrong or not.
#include
#include
void main()
{ int n,n1,r,s,c;
s=0;
clrscr();
printf("Enter the No :");
scanf("%d",&n);
n1=n;
while(n>0)
{
r=n%10;
c=r*r*r;
s=s+c;
n=n/10;
} if(s==n1)
printf("Amstrong");
else
printf("Not an Amstrong");
getch();
}
30
C program to check whether given number is palindrome or not.
#include
#include
void main()
{ int n,n1,r,c=0;
clrscr();
printf("Enter the no=");
scanf("%d",&n);
n1=n;
while(n>0)
{ r=n%10;
c=c*10+r;
n=n/10;
} if(c==n1)
printf("It is a palindromic number");
else
printf("It is not a palindromic number");
getch();
}




c program assignment,c program solve assignment, C program assignment pdf download, c program assignment question answer pdf download,c program assignment problem,c program assignment list for computer science,c program assignment list,c program assignment list for BSC students,c program assignment list for BCA students,c program assignment list for diploma students,c program assignment list for MCA Student,c program assignment list for IT Student,c program assignment list for MCS students,c program assignment list for M TECH students,c program assignment list for BE students,c program assignment list for INTERVIEW Preparation,c program assignment list for CBSE students, c program Solve assignment list Beginner,c programming solved example,c programming solved example pdf,c program assignment problem with solution,c program assignment complete assignment for beginner,c program examples,c programming assignment help,c programming assignment questions,c programming assignment questions answer,c programming assignment pdf,c programming assignments for beginners,c program for assignment problem in operational research

C Program example List