Posts

Showing posts from October, 2017

c program to find sqaure of any number

Image
floating is a data type. By the use of float, if the user inputs decimal number, then the compiler will give the exact output.

c program to find multiplication of same number

Image
#include<stdio.h> #include<conio.h> void main() { int n,m; clrscr(); printf("enter any number="); scanf("%d",&n); m=n*n; printf("Product="); printf("%d",m); getch(); }

c program to find product of two numbers

Image
#include<stdio.h> #include<conio.h> void main() { int c,a,b; clrscr(); printf("enter 1st number="); scanf("%d",&a); printf("enter 2nd number="); scanf("%d",&b); c=a*b; printf("Product="); printf("%d",c); getch(); }

c program for subtracting 2 numbers.

Image
Input 2 numbers & get there subtraction.

c program for adding two numbers

Image
input two numbers and get there addition.

c program to for adding two variables

Image
Add two numbers without inputting.

C program to print "Hello"

Image