Sunday, 17 July 2016

Thursday, 7 July 2016

programming CHALLENGE [UPDATED]

guys here a text encrypting program....so the task is to make an program to decrypt that text ....here's its source code u can also download its source code @ downloadits solution will be uploaded within 15 days....you can also mail your solution @ mayank8005@gmail.com will enlist top 10 solutions mentioning your name..
for any query u can place a comment

Friday, 24 June 2016

program to add two number

hello guys today i m gonna show u a basic program to add to no....
so there are five airthematic operator in c/c++

  • + addition
  • - substraction
  • * multiplication
  • / division
  • % mod/remainder
here is an illustration to build a basic program to add to no :-

#include<stdio.h>
void main()
{
int a,b;
scanf("%d %d",&a,&b);   //inputing two no from the user
printf("\n addition = %d",a+b);
}

so this way we can add subs or perform any mathematical operation ....
we can also use 3 variable to perform same action by writing

c=a+b;
printf("addition=%d",&c);


Wednesday, 22 June 2016

Friday, 6 May 2016

Sunday, 24 April 2016

Escape sequences //

hello guys , today i m gonna tell u about what are  escape sequence in C language ....


so here are the list of escape sequences we are gonna discuss about:

1, \n

2. \a

3. \r

4. \b

5. \t

/n = new line

some times we need to print anything using printf function in two lines . even if we use 2 printf without using \n we cant print anything in two line...
so if we want to print anything in two lines we have to use /n 
for example if we want to print 

hello 
user

soo program will be like



#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 printf("hello\n user");

 getch();
}

sooo backslash n (\n) shifts our cursor to the next line.....

\a = alarm 

sometimes we want to seeks users attention.....soo \a  allow us to do sooo...
when we use \a in printf.....\a generates a beep sound using our cpu buzzer ..
suppose we have instructed as follows:

printf("hello \a user ");

then output will be like 

hello (beep sound) user



                                                                                             to be continued .... 





Monday, 28 March 2016

printf("")


Hello guys, today i am gonna tell you about the function known as printf();
here is our basic program we are gonna study all of its element line by line so today is the turn of the function printf();



#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 printf("hello world");
}