Wednesday, 15 January 2014
c program how to add subtract divide
/* Simple Program Displaying The Use Of Basic Mathematical Operators */
/* Simple Program Displaying The Use Of Basic Mathematical Operators */
#include<stdio.h>
#include<conio.h>
void main()
{
int num1,num2,add,sub,multi,div,modulo_div;
#include<conio.h>
void main()
{
int num1,num2,add,sub,multi,div,modulo_div;
printf("Enter Two Numbers:");
scanf("%d%d",&num1,&num2);
scanf("%d%d",&num1,&num2);
add=num1+num2;
sub=num1-num2;
multi=num1*num2;
div=num1/num2;
modulo_div=num1%num2;
sub=num1-num2;
multi=num1*num2;
div=num1/num2;
modulo_div=num1%num2;
printf("\nAddition=%d\nSubtraction=%d\nMultiplication=%d\nDivision=%d\nModulo Division=%d",add,sub,multi,div,modulo_div);
getch();
}
}
OUTPUT
Example of printf and scanf.. (easy)
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Example of printf and scanf\n");
printf("enter the value of a and b");
scanf("%d%d",&a,&b);
c=a+b;
printf("the sum is:%d",c);
getch();
}
Here printf prints the phrase Example of printf and scanf and enter the value of a and b. "\n" prints the phrase in a newline. Scanf stores the value of "a" and "b" entered by the user. "+" sign does the addition and store the value in c. Again printf prints the value of c.
Tuesday, 14 January 2014
c programming, printf, what is printf
printf("lets start\n");
use of printf
printf("lets start\n");
This is the printf command and it prints text on the screen. The data that is to be printed is put inside brackets. You will also notice that the words are inside inverted commas because they are what is called a string. Each letter is called a character and a series of characters that is grouped together is called a string. Strings must always be put between inverted commas. The \n is called an escape sequence and represents a newline character and is used because when you press ENTER it doesn't insert a new line character but instead takes you onto the next line in the text editor. You have to put a semi-colon after every command to show that it is the end of the command.
C programming
C programming was developed by Dennis Ritchie at bell laboartories USA in 1972. C is used to prepare system software and application.
lets start with C basic knowledge.......Any instruction that starts with # (pre-processor operator) take up a whole line,and finish at the end of line which line is called pre-processor directive. Files ending with .h are what known as header files, provided with each compiler and cover a range of area such as string handling,mathematical conversions,printing and reading of variables etc. Stdio.h means "standard in/out" which means standard in/out which means standard way of getting data to and form input and output devices. In our case we whish to take in data from keyboard (a standard input devices) and put data on to the screen or console (a standard output device.)Conio.h means console in/out which means way of getting data to and from the console device(which uses the keyboard and screen)> Here stdio.h is more generalized and can be used to read/write data from to a disk file permanent storage of data, write data out out to a printing device ,and so on. The conio.h library just contains the deal specially with the console (keyword and black pop-up screen). Printf, scanf etc functions are defined in stdio.h header file whereas getcg(),clrscr() functions are defined in conio.h header file.
Another use of pre-processor operator is to define the variable globally like #define pi 3.14This global variable defination always comes before main function where a variable PI is assigned by value of 3.14
Any C program alwas starts with at most one main() function.void main(){ statements;}Here,void is return type of the function definition which returns nothing. `{` indicates the starts of main function and `}`indicates the end of main function.
Monday, 13 January 2014
Free Net Connection In Airtel With out Gprs Activation
Tips To Get the Free Net connection In Airtel Live:-
Hi Friends everyone want to have the internet connection for free, but practically it wont possible in the real life because it was not provided by the server's like Airtel,Aircel,Vodafone. Here is the technique that was revealed here. Here this was discussed that the free internet connection without GPRS activation. But this was work only in the java phone's only ...
As soon as this was provided to the Android Phones..
This is the Nice trick To get the free Airtel GPRS:-
How To Do:-
- First of all you need to activate the GPRS connection in the Handset or mobile phone..
- Then Call to the 121 and activate the GPRS connection.
- If you Got GPRS connection then Follow the steps below.
- Tea-Shark Web Browser which gives the free net Connection.
- It also works in the Java Handset.
- To Download this Click Here.
- This Trick is Most probably Work in all type of Handsets
- Wanna Play game with Google Images Then Look at the last of this article.
Important Note :-
Viewers must be Check your Balance After few minutes of usage..
This software is only available in this site only .....
This is an Excellent Technique Found in Airtel
Check This out:-
Check This out:-
Tips To Invite All Friend For Page likes......
Subscribe to:
Posts (Atom)




