t

Thursday, 25 April 2013

CS201 Introduction to Programming Assignment No.1 Solution On April 2013

CS201 Introduction to Programming Assignment No.1 Solution On April 2013


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

0 comments :

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Online Project management