Here you can learn about C its basic programs and all other concept about it. No need to refer any book, just simply study here with us. You can post your queries and feedback at CONTACT US tab. We will help you out for sure.

C language (For beginners)



2. Addition of two number-


#include<stdio.h>
#include<conio.h>
main()
{

clrscr();
   int x, y, z;
 
   printf("Enter two numbers to add\n");
   scanf("%d%d",&x,&y);
 
   z = x + y;
 
   printf("Sum of entered numbers = %d\n",z);
 
   return 0;
getch();
}


3. Subtraction of two numbers-

#include<stdio.h>
 #include<conio.h>
main()
{
   clrscr();
   int a, b, c;
 
   printf("Enter two numbers to subtract \n");
   scanf("%d%d",&a,&b);
 
   c = a - b;
 
   printf("Subtraction of entered numbers = %d\n",c);
 
   return 0;
}


4. Multiplication of two numbers-
#include<stdio.h>
#include<conio.h>
void main()
{
   clrscr();
   int a, b, c;
 
   printf("Enter two numbers to multiply \n");
   scanf("%d%d",&a,&b);
 
   c = a / b;
 
   printf("Multiplication of entered numbers = %d\n",c);
 
   getch();
}


 1 2 next page>3