Professional Documents
Culture Documents
Solution of Programme
Solution of Programme
PROGRAMME
Sum of two number 62 and 99
#include<iostream.h>
#include<conio.h>
int main()
{
int a, b, Total;
a = 62;
b = 99;
Total = a+b;
cout<<" Total Of Two Number = "<<Total<<endl;
getch();
}
Triangle pattern
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
void main()
{
cout<<setw(9)<<"*"<<endl;
cout<<setw(10)<<"***"<<endl;
cout<<setw(11)<<"*****"<<endl;
cout<<setw(12)<<"*******"<<endl;
getch();
}
Celsius to farhenhite
#include<iostream.h>
#include<conio.h>
void main()
{
float a,b;
cout<<"Enter the Temperature in Celsius"<<endl;
cin>>a;
b=1.8*a+32.0;
cout<<"Temperature in Fahrenheit is "<<b;
getch();
}
Minimum/maximum
#include<iostream.h>
#include<conio.h>
void main()
{
float a,b;
cout<<"enter first number"<<endl;
cin>>a;