Thursday, 12 January 2017

how to record screen of your computer

program to print hello in c language:

#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello ");
getch();
return 0;
}

program for adding of two no in c language:

#include<stdio.h>
#include<conio.h>
int main()
{
int a=2,b=4,c;
c=a+b;
printf("sum of two no is %d:-",c);
getch();
return 0;
}

program of calculator in c language:

#include <stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("enter the 1st no.: );
scanf("%d",&a);
printf("enter the 2nd no.: );
scanf("%d",&b);
c=a+b;
printf("the sum of no is%d",c);
c=a-b;
printf("the subtraction of no. is %d",c);
c=a*b;
printf("tne multiply is %d",c);
c=a/b;
printf("the division is %d",c);
getch();
return 0;
}

program  for checking odd or even no. :

#include<stdio.h>#include<conio.h>
int main()
{
int a;
printf("enter the no.:);
scanf("%d",&a);
if(a/2==0)
{
printf("the no is even ")
}
else
{
printf("no. is odd");
}
getch();
return 0;
}




 







Buy Zebronics Companion6 Wireless Keyboard & Mouse Combo from Snapdeal