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
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();
}