Posts

Showing posts from 2017

c program for swapping two numbers without using third variable.

Image
here, lets take an example- a=a+b a=3+5=8 b=a-b b=8-5=3 a=a-b a=8-3=5 Thus, swapping done in this way.

DML PRE-COMPILER

Dml pre-compiler is a sub program or module of the complex s/w dbms. Dml stands for data manipulation language, which is used for the management of database. Dml is a converter acts like a translator. It takes application programs as input. Then in interaction with query processor, it produces object code with respective application program. Normally, the application program contains DML statements. It also takes system routines which are provided by the application programmers to produce the object code.
To listen to song on youtube on repeat without having to keep pressing "replay" at the end, add 'repeat' between 'www.youtube' and '.com'

technology tricks.

Replace the "en" in a Wikipedia link with "simple" to strip away the complex and mostly irrelevant information on the page.

c program for swapping between two numbers using third variable

Image

c program to check greater number between two numbers using if-else(conditional statement)

Image

c program to check even/odd number through if-else(conditional statement)

Image

c program to find area of circle of given radius.

Image

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