C++ Coding ?

hello Friends now i will to talk to about the C++ Coding

The Most of the Example gives in the tutor you will find the try it option in website code
Section at the top right computer that will take you to online compiler Just make use of
it end enjoy learning [..]

Local Environment set upon

If you want to set up your Environment for language you need the follow
two Software tools Available only text editor

Text Editor

Command; Brief, EMAC;s [..] The name of version of text Editors can very on different operating System.
For examples, Notepad can window a well as on. [..]

The File you create with you editor are the source file EL they contain the program source codes.
The Source files for C Program are typically with the extension. [..]

one text editor in place EL You have
enough Experience to write a Computer program, Save It in a File, Combine It And Execute It.

C++ Coding

The C Compiler
The Source code written in source file it the human readable Source for your program it can need
to be into machine language that your CPU can Actually Execute the program as per
the Instruction give. [..]

The Compiler compiles the Source code into final Executable programs the most frequently the used EL
Free available compiler in the GNU CLC++ Compiler, other as your can have Compiler either from HP
of you have the respective operating System. [..]

C++ Coding

The Section Explain how to Install GNU C/C++ Compiler on version OS We keep mentioning C/C++ tap
Be cause GNU GCC Compiler work for C an language. [..]

#Include <Stdio.h>
Int main ()
{
/* My First program in C*/
Printf C’ Hello, World! In”);

How to Open C

CD..
CD..
CLS
DIR
CD TURBOC++
DOS BO
X

Koi Bhi Error decyne Ke Liye Alt Press F9 plus Karen Aur koi Bhi output decyne ke liye Control + F9 ka press Karen

#Include <Stdio.h>
#Include<Conio.h>
Void main ()
{
Int a=2, b=3, sum;
Clrscr();
Sum=A+B;
Printf (“sum=%d”,Sum);
getch();
}

Coding No. 2
#Include <Stdio.h>
#Include<conio.h>
Void main()
{
Int a=2, b=3, Sub;
Clrscr();
Sub=A-B;
Printf (“sum=%d”,Sub);
getch();
}

Coding No.3
#Include <Stdio.h>
#Include<conio.h>
Void main()
{
Int a=2, b=3, Multipl;
Clrscr();
Int=A*B;
Printf (“sum=%d”, Multiple);
getch();
}


Coding No.4
#Include <Stdio.h>
#Include<conio.h>
Void main()
{
Int a=2, b=3, Div;
Clrscr();
Div=A/B;
Printf (“Div=%d”,Div);
getch();
}


Coding No. 5
#Include<Stdio.h>
#Include<Conio.h>
Void main()
{
Int a;
Int next;
Clrscr ();
Printf(“In Enter any digit”);
Scanf(%d”, &a);

Coding No. 6
#Include<Stdio.h>
#Include>Conio.h>
Void main()
{
Int n1,n2, sum;
Clrscr ();
Printf(“In Enter two Number:”);
Scanf(“%d%d”,& n1& n2);
Sum +n1+n2;
Printf(“In Sum as No 5-%d”, Sum);
Getch();
}

Coding No.5
Area of Rectangle
#Include <Stdio.h>
#Include<Conio.h>
{
Int length, Breadth, Area;
Printf(“\n Enter the length of Rectangle:”);
Scanf(“%d”, & Length);
Printf(“\n Enter the breadth of Rectangle:”);
Scanf(“%d”, & breadth);
Area =length*breadth;
Print (“\n Area of Rectangle:%d”, Area);
getch();
}

OutPut

Enter the Length of Rectangle -20
Enter the breadth of Rectangle =30
-600


Reverse coding
#include<stdio.h>
Int main()
{
Int n,r=0;
Printf(“Enter a number to reverse \n”);
Scanf(“%d”, &n);
While (n!=0)
{
r=r*10;
r=r+n%10;
n=n/10;
}
Printf(“Reverse of the number=%d \n” , r);
return 0;
}

Coding No.6
#include <Stdio.h>
#Include<Conio.h>
void main
{
Int ch;
Clrscr();
Printf(“enter no b/w 1to7:”);
Scanf(“%d”, &Ch);
If (Ch==1)
Printf(“Sunday”);
Else if (ch==2)
Printf(“Monday”);
Else if (ch==3)
Printf(“Tuesday”);
Else if (ch==4)
Printf(“Wednesday”);
Else if (ch==5)
Printf(“Thursday”);
Else if (ch==6)
Printf(“Friday”);
Else if (ch==7)
Printf(“Saturday”);
Else
Printf(“Wrong Choice”);
getch()
}

How to create an Invitation Card?

Something Wrong Please Contact to Davsy Admin

Leave a Comment