-->

Sunday, March 11, 2018

WAP to find sum,difference, and product of two numbers using switch.

//WAP to find sum,difference, and product of two numbers using switch.
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int choice;
int a,b,output;
printf("please enter your two numbers for a and b for operation\n");
scanf("%d%d",&a,&b);
printf("'now,we have following menu\n");
printf( "1.to get sum\n");
printf("2. to get difference\n");
printf("3 to get product\n");
printf(" any other number to exit");
printf("enter your choice 1 or 2 or 3 or any other number\n");
scanf("%d",&choice);
 switch(choice)
          {
                  case 1:
                            printf("we are going to get sum\n");
                           printf("the sum=%d",a+b);
                 break;
               case 2:
                            printf("we are going to get difference \n");
                           printf("the difference=%d",a-b);
                 break;

               case 3:
                            printf("we are going to get product,\n");
                           printf("the product=%d",a*b);
                 break;
             
              default:
                            printf("sorry, not a valid input\n");
                            printf("thank u, terminating....\n");
          }
getch();
}

//program to get following pattern

/*program to get following pattern
                *
                * *
                * *  *
                * *  *  *
                * *  *  *  * 
*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=5;i++)
  {
     for(j=1;j<=i;j++)
          {
                printf("* ");
          }
       printf("\n");
 }
getch();
}

Saturday, March 10, 2018

Using pointer, write a program to show addition,subtraction and division (arithmetic calculation ).

//Using pointer, write a program to show addition,subtraction and division (arithmetic                    calculation ).
#include<stdio.h>
#include<conio.h>
void main()
{
int *p,*p1;
int number,number1;
printf("enter a numbers\n");
scanf("%d%d",&number,&number1);
p=&number;
p1=&number1;
printf("the sum is=%d\n",*p+*p1);
printf("the difference is=%d\n",*p-*p1);
printf("the quotient is=%d\n",*p/*p1);
getch();
}

Program to input a value/number and display its address with value using pointer.

//WAP to input a value/number and display its address with value using pointer.
#include<stdio.h>
#include<conio.h>
void main()
{
int *p;
int number;
printf("enter a number\n");
scanf("%d",&number);
p=&number;
printf("the address is=%d\n",p);
printf("the value is=%d\n",*p);
getch();
}

Friday, March 9, 2018

program to print 'n' integers and their factorial value.

//to print 'n' integers and their factorial value.
#include<stdio.h>
include<conio.h>
void main()
{
   int number,i,k,fact;
   printf("enter value(upper) for  number 'number'\n");
  scanf("%d",&number);
  for(i=1;i<=number;i++)
    {
        fact=1;
        for(k=1;k<=i;k++)
           {
                    fact=fact*k;
            }
            printf("the factorial value for %d number=%d\n",i,fact);
    }
getch();
}

program to get y raise to power x using user defined function.

//program to get y  raise to power x using user defined function.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void powervalue();
void main()
{

powervalue();
getch();
}
void powervalue()
{
int x,y,output;
printf("enter base value\n");
scanf("%d",&x);
printf("enter power value\n");
scanf("%d",&y);
output=pow(x,y);
printf("the output =%d\n",output);
getch();
}

program to get sum of 'n' integers using function.

//program to get sum of 'n' integers using function.
#include<stdio.h>
#include<conio.h>
void sum();
void main()
{

sum();
getch();
}
void sum()
{int k=1,n,sum=0;
printf("enter value of 'n'\n");
scanf("%d",&n);
while(k<=n)
   {
      sum=sum+k;
      k++;
   }
printf("sum=%d",sum);
}

program to get/sum of all odd numbers lying between 1 to n natural numbers

//program  to get/sum of all odd numbers lying between 1 to n natural numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int k=0,n,sum=0;                         
printf("enter value of 'n'\n");
scanf("%d",&n);
while(k<=n)
   {
      if(k%2!=0)
      {      sum=sum+k;
      }
    k++;
   }
printf("the sum=%d",sum);

getch();
}

-----------------------------
we can also write this program as shown below.
-------------------------------------
//program  to get/sum of all odd numbers lying between 1 to n natural numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int k=1,n,sum=0;                         
printf("enter value of 'n'\n");
scanf("%d",&n);
while(k<=n)
   {
            sum=sum+k;
      
    k=k+2;
   }
printf("the sum=%d",sum);
getch();
}

Wednesday, March 7, 2018

program to get sum of series 1 ,3,5,7,.......nth.

//program  to get sum of series 1 ,3,5,7,.......nth.
#include<stdio.h>
#include<conio.h>
void main()
{
int k,n;
int s=0;printf(enter value of 'n'\n");
scanf("%d",&n);
for(k=1;k<=n;k=k+2)
   {          
       s=s+k;
   }
printf("sum=%d,",s);
getch();
}

program to know a number is divisible by 3 and 5 both or not



//'C' program to know a number is divisible by 3 and 5 both or not
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
printf("enter a number\n");
scanf("%d",&x);
if(x%3==0 && x%5==0)
{
printf("it is divisible by both");
}
else
{
printf("it is not divisible by both\n");
}
getch();
}

program to know a number is even or odd using function



//program to know a number is even or odd
#include<stdio.h>
#include<conio.h>
void evenodd();
void main()
{
evenodd();
getch();
}
void evenodd()
{int x;
printf("enter a number\n");
scanf("%d",&x);
if(x%2==0)
   {
    printf("it is an even number");
    } 
else
   {
   printf("it is an odd number\n");
    }
}

program to get greatest number among three numbers

// program to get greatest number among three numbers
#include<stdio.h>
#include<conio.h>
void main()
{
float a,b,c;
printf(“enter three numbers\n”);
scanf(“%f%f%f”,&a,&b,&c);
if(a>b &&a>c)
{
printf(“the greatest number=%f\n”,a);
}
elseif(b>a &&b>c)
{
printf(“the greatest number=%f\n”,b);
}
else
{
printf(“the greatest number=%f\n”,c);
}
getch();
}

Friday, March 2, 2018

program to get sum of 1 to n numbers

//A program  to print/display sum of 1 to n natural numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int k=1,n,sum=0;
printf("enter value of 'n'\n");
scanf("%d",&n);
while(k<=n)
   {
      sum=sum+k;
      k++;
   }
printf("sum=%d",sum);getch();
}

Saturday, May 13, 2017

removing Subscribe to: Posts (Atom) from blog/sites

follow the steps to remove  "Subscribe to: Posts (Atom)" from you blog or sites


1)

  goto dashboard
         
   

2)click theme
   
          


3)click edit html




4)click inside html code


5) press ctrl+F

6)find the line
<b:include data='feedLinks' name='feedLinksBody'/>
 as shown here




7)delete that line



8 save the code by clicking "save the theme "



u r now done !!!!!!

Tuesday, May 9, 2017

how to remove "recommend this on google"from your all posts

follow the steps.

1)sign in to your account
 





2)type blogspot.comon address bar


3)click/select blog's type as shown here


4)click layout


5)then u can see

6)click edit under blog posts

7)now you get

8)now you can see here "show share buttons", uncheck this.

9)that s all. after doing ,it looks like





Saturday, April 15, 2017

What is multimedia? Explain its components.


What is multimedia? Explain its components.

ans:

Multimedia is content that uses a combination of different content forms such as text, audio, images, animations, video and interactive content. Multimedia contrasts with media that use only rudimentary computer displays such as text-only or traditional forms of printed or hand-produced material.
Multimedia can be recorded and played, displayed, interacted with or accessed by information content processing devices, such as computerized and electronic devices, but can also be part of a live performance. Multimedia devices are electronic media devices used to store and experience multimedia content. Multimedia is distinguished from mixed media in fine art; for example, by including audio it has a broader scope. The term "rich media" is synonymous with interactive multimedia.

Its components are:

1)Text: Text is the most common medium of representing the information. In multimedia, text is mostly use for titles, headlines,menu etc. The most commonly used software for viewing text files are Microsoft Word, Notepad, Word pad etc. Mostly the text files are formatted with ,DOC, TXT etc extension.

2)Audio: In multimedia audio means related with recording, playing etc. Audio is an important components of multimedia because this component increase the understandability and improves the clarity of the concept. audio includes speech, music etc. The commonly used software for playing audio files are:
i) Quick Time
ii) Real player
iii) Windows Media Player

3)Graphics: Every multimedia presentation is based on graphics. The used of graphics in multimedia makes the concept more effective and presentable.the commonly used software for viewing graphics are windows Picture, Internet Explorer etc. The commonly used graphics editing software is Adobe Photoshop through which graphics can be edited easily and can be make effective and attractive.

4)Video: Video means moving pictures with sound. It is the best way to communicate with each other. In multimedia it is used to makes the information more presentable and it saves a large amount of time. The commonly used software for viewing videos are:
i) Quick Time
ii) Window Media Player
iii) Real Player

5)Animation: In computer animation is used to make changes to the images so that the sequence of the images appears to be moving pictures. An animated sequence shows a number of frames per second to produce an effect of motion in the user's eye. 

What is multimedia? Explain its applications.

What is multimedia? Explain its applications.

ans:-
Multimedia is content that uses a combination of different content forms such as text, audio, images, animations, video and interactive content. Multimedia contrasts with media that use only rudimentary computer displays such as text-only or traditional forms of printed or hand-produced material.
Multimedia can be recorded and played, displayed, interacted with or accessed by information content processing devices, such as computerized and electronic devices, but can also be part of a live performance. Multimedia devices are electronic media devices used to store and experience multimedia content. Multimedia is distinguished from mixed media in fine art; for example, by including audio it has a broader scope. The term "rich media" is synonymous with interactive multimedia.

Its applications are:

1)Multimedia in Education: Multimedia is becoming popular in the field of education. It is commonly used to prepare study material for the students and also provide them proper understanding of different subjects.Nowadays Edutainment, a combination of Education and Entertainment has become very popular. This system provides learning as well as provides entertainment to the user. 

2)Multimedia in Entertainment: Computer graphics techniques are now commonly use in making movies and games. this increase the growth of multimedia.

3)Movies: Multimedia used in movies gives a special audio and video effect. Today multimedia has totally changed the art of making movies in the world. Difficult effect, action are only possible through multimedia. 

4)Games: Multimedia used in games by using computer graphics, animation, videos have changed the gaming experience. Presently, games provides fast action, 3-D effects and high quality sound effects which is only possible through multimedia.

5)Multimedia in Business: Today multimedia is used in every aspect of business. These are some of the applications:

6)Videoconferencing: This system enables to communicate using audio and video between two different locations through their computers.When the information is sent across the world, this technology provides cost benefits to the business which saves their time, energy and money.

7)Marketing and advertisement: Nowadays different advertisement and marketing ideas about any product on television and internet is possible with multimedia.