-->

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();
}

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();
}

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 !!!!!!

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