Thursday, March 23, 2017

5 Divide Two Number from keyboard input - c program

#include<stdio.h>
#include<conio.h>
main()
{
int a, b;
float div;
printf("Type the first number: ");
scanf("%d",&a);
printf("Type the second number: ");
scanf("%d",&b);
div = a/b;
printf("Division= %f",div);
getch();
}
view raw 5.c hosted with ❤ by GitHub


4 product two number- c program


#include<stdio.h>
#include<conio.h>
main()
{
int a, b, mul;
printf(" Type the first number: ");
scanf("%d",&a);
printf(" Type the second number: ");
scanf("%d",&b);
mul = a*b;
printf("Multiplication= %d", mul);
getch();
}
view raw 4.c hosted with ❤ by GitHub

3 subtract two number - c program


#include<stdio.h>
#include<conio.h>
main()
{
int a, b, sub;
printf(" Type the first number: ");
scanf("%d",&a);
printf("Type the second number: ");
scanf("%d",&b);
sub = a-b;
printf("Subtraction= %d",sub);
getch();
}
view raw 3.c hosted with ❤ by GitHub

2 adding two number

#include<stdio.h>
#include<conio.h>
main()
{
int a, b, sum;
printf(" Type the first number: ");
scanf("%d",&a);
printf("Type the second number:");
scanf("%d",&b);
sum = a+b;
printf("Summation = %d",sum);
getch();
}
view raw 2.c hosted with ❤ by GitHub


১. ICT PRIVATE program ----- c program


#include<stdio.h>
#include<conio.h>
main()
{
printf("ICT PRIVATE PROGRAM");
getch();
}
view raw 1.c hosted with ❤ by GitHub