Linked With

Tuesday, 7 May 2013

CS201 Introduction to Programming Assignment No.1 Solution Spring Semester 2013 written update

CS201 Introduction to Programming Assignment No.1 Solution Spring Semester 2013 written update 

I have write some code this is not full code i am try to make i think there is if else statement need

#include <iostream>
#include <stdlib.h>
#include <math.h>
// Main Function
int main(){
using namespace std;

int p1,p2;

int y1,y2;

int x1, x2;

float resultSlope;
cout "Enter the X-Coordinate of the starting point = ";
cin >> x1;
cout "Enter the Y-Coordinate of the starting point = ";
cin >> y1;
cout "Enter The X-Coordinate of the Ending point = ";
cin >> x2;
cout "Enter the Y-Coordinate of the Ending Point = ";
cin >> y2;
resultSlope = (y2 - y1) / (x2 - x1);
}
-->