------------------------------------------
/* This Program is used to display the size of different dataTypes
Key_point:
We use the function sizeof(dataTypes) :
*/
#include
using namespace std;
int main()
{
cout<<"The size of Int_data_Type is "<
/*This is a Program to display the area of arectangle
Key_point:
area=height*Width;
*/
#include
using namespace std;
int main()
{
int height=9;
int width=5;
int area=0;//Intiliaze to zero to overwrite the garbage value
cout<<"Calculate the area of a rectangle:"<
/*This is a program that dispaly the sum,subtraction ,multiplication and division
of the two "Float_numbers"*/
#include
using namespace std;
int main()
{
float num1=5.4;
float num2=7.2;
float sum=0;//Initilaize to zero to overwrite the garbage values
float sub=0;
float multiplay=0;
double division=0;//Take is double because its a chance to get the point values greater than float range
cout<<"we have two numbers:"<
Task 4. Write reasons for errors in following codes:
int number = 10;
cout << number;
cout << number2;
int number2 = 50;
char ch = 'Programming Fundamental ';
cout << ch ;
/*
Errors in the code*/
#include
using namespace std;
int main()
{
cout<<"we have a code as:"<
Whats make this website differents from others?
Amazing Feature That Increase your Productivity
If you don't find any problem,in this website and if you have a very difficult assignment
question that
is not present on internet ,then you dont bother yourself,we are here to solve every problem
of
your
life you just click on the Problem asking button and write your problem we slove the code of
your
problem and sent you on your email addres that you put in the sin up form.