Your SlideShare is downloading. ×
  • Like
Pratik Bakane C++
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply
Published

Pratik Bakane C++ programs...............This are programs desingedby sy diploma student from Governement Polytecnic Thane.....programsare very easy alongwith coding andscreen shot of the output

Pratik Bakane C++ programs...............This are programs desingedby sy diploma student from Governement Polytecnic Thane.....programsare very easy alongwith coding andscreen shot of the output

Published in Engineering , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
48
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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(); }
  • 2. OUTPUT:
  • 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(); }
  • 4. OUTPUT:
  • 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(); }
  • 6. OUTPUT: