SlideShare une entreprise Scribd logo
1  sur  6
/*Program to input an integer value from
keyboard and display “WELDONE ” on screen*/
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,n;
cout<<"nnttEnter number of times:";
cin>>n;
for(i=0;i<n;i++)
{
cout<<"nnttWELDONE";
}
getch();
}
OUTPUT:
/*Program to read values of a,b,c and find
x where x=a/(b-c)*/
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,x;
cout<<"nnttEnter a:";
cin>>a;
cout<<"nnttEnter b:";
cin>>b;
cout<<"nnttEnter c:";
cin>>c;
x=a/(b-c);
cout<<"nnttValue of X is:"<<x;
getch();
}
OUTPUT:
/*Program to calculate simple interest*/
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int si,p,n,r;
cout<<"nt************Simple Interest******************";
cout<<"nnttEnter Principal Amount:";
cin>>p;
cout<<"nnttEnter number of Years:";
cin>>n;
cout<<"nnttEnter the rate of interest:";
cin>>r;
si=(p*n*r)/100;
cout<<"nnttThe simple interest is:"<<si;
getch();
}
OUTPUT:

Contenu connexe

Tendances

basic programs in C++
basic programs in C++ basic programs in C++
basic programs in C++
Arun Nair
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)
Syed Umair
 

Tendances (20)

C++ Programming - 4th Study
C++ Programming - 4th StudyC++ Programming - 4th Study
C++ Programming - 4th Study
 
C++ Programming - 2nd Study
C++ Programming - 2nd StudyC++ Programming - 2nd Study
C++ Programming - 2nd Study
 
Cpp tutorial
Cpp tutorialCpp tutorial
Cpp tutorial
 
basic programs in C++
basic programs in C++ basic programs in C++
basic programs in C++
 
week-10x
week-10xweek-10x
week-10x
 
week-18x
week-18xweek-18x
week-18x
 
week-11x
week-11xweek-11x
week-11x
 
Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)
 
week-1x
week-1xweek-1x
week-1x
 
Stl algorithm-Basic types
Stl algorithm-Basic typesStl algorithm-Basic types
Stl algorithm-Basic types
 
งานนำเสนอ อาจารย์ลาวัลย์
งานนำเสนอ อาจารย์ลาวัลย์งานนำเสนอ อาจารย์ลาวัลย์
งานนำเสนอ อาจารย์ลาวัลย์
 
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2
 
Function basics
Function basicsFunction basics
Function basics
 
C program to implement linked list using array abstract data type
C program to implement linked list using array abstract data typeC program to implement linked list using array abstract data type
C program to implement linked list using array abstract data type
 
week-4x
week-4xweek-4x
week-4x
 
Final ds record
Final ds recordFinal ds record
Final ds record
 
week-2x
week-2xweek-2x
week-2x
 
Double linked list
Double linked listDouble linked list
Double linked list
 
Avl tree
Avl treeAvl tree
Avl tree
 

En vedette (9)

Travel management
Travel managementTravel management
Travel management
 
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
 
Programs of C++
Programs of C++Programs of C++
Programs of C++
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklist
 
Computer graphics programs in c++
Computer graphics programs in c++Computer graphics programs in c++
Computer graphics programs in c++
 
Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500Write a program to print out all armstrong numbers between 1 and 500
Write a program to print out all armstrong numbers between 1 and 500
 
Loops
LoopsLoops
Loops
 
Pointers & References in C++
Pointers & References in C++Pointers & References in C++
Pointers & References in C++
 
C pointer basics
C pointer basicsC pointer basics
C pointer basics
 

Similaire à Pratik Bakane C++

Similaire à Pratik Bakane C++ (20)

54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
C++ file
C++ fileC++ file
C++ file
 
C lab programs
C lab programsC lab programs
C lab programs
 
C lab programs
C lab programsC lab programs
C lab programs
 
C++ file
C++ fileC++ file
C++ file
 
week-8x
week-8xweek-8x
week-8x
 
Assignment no 5
Assignment no 5Assignment no 5
Assignment no 5
 
C lab
C labC lab
C lab
 
Bijender (1)
Bijender (1)Bijender (1)
Bijender (1)
 
C Programming
C ProgrammingC Programming
C Programming
 
Pads lab manual final
Pads lab manual finalPads lab manual final
Pads lab manual final
 
Assignement of c++
Assignement of c++Assignement of c++
Assignement of c++
 
Write a program that reads in integer as many as the user enters from.docx
Write a program that reads in integer as many as the user enters from.docxWrite a program that reads in integer as many as the user enters from.docx
Write a program that reads in integer as many as the user enters from.docx
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentals
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
C file
C fileC file
C file
 
C++ TUTORIAL 4
C++ TUTORIAL 4C++ TUTORIAL 4
C++ TUTORIAL 4
 
C PROGRAMS
C PROGRAMSC PROGRAMS
C PROGRAMS
 
Cpp
Cpp Cpp
Cpp
 
Final DAA_prints.pdf
Final DAA_prints.pdfFinal DAA_prints.pdf
Final DAA_prints.pdf
 

Dernier

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Dernier (20)

Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 

Pratik Bakane C++

  • 1. /*Program to input an integer value from keyboard and display “WELDONE ” on screen*/ #include<iostream.h> #include<conio.h> void main() { clrscr(); int i,n; cout<<"nnttEnter number of times:"; cin>>n; for(i=0;i<n;i++) { cout<<"nnttWELDONE"; } getch(); }
  • 3. /*Program to read values of a,b,c and find x where x=a/(b-c)*/ #include<iostream.h> #include<conio.h> void main() { clrscr(); int a,b,c,x; cout<<"nnttEnter a:"; cin>>a; cout<<"nnttEnter b:"; cin>>b; cout<<"nnttEnter c:"; cin>>c; x=a/(b-c); cout<<"nnttValue of X is:"<<x; getch(); }
  • 5. /*Program to calculate simple interest*/ #include<iostream.h> #include<conio.h> void main() { clrscr(); int si,p,n,r; cout<<"nt************Simple Interest******************"; cout<<"nnttEnter Principal Amount:"; cin>>p; cout<<"nnttEnter number of Years:"; cin>>n; cout<<"nnttEnter the rate of interest:"; cin>>r; si=(p*n*r)/100; cout<<"nnttThe simple interest is:"<<si; getch(); }