All pastes #757299 Raw Edit

SupraFast

public text v1 · immutable
·published 2007-11-01 04:20 UTC
rendered paste body
#include <iostream.h>
#include <conio.h>


int main(){
	int cs135[10];

	cout << "Please tell me what each student got on the last exam.\n\n";

	//This loop asks the user what his students grades are
	//and then stores them into the array. The loop starts
	//off with studend #0 and goes up to 10.
	for(int student = 0; student < 10; student++){
		cout << "Student Number " << student << ": ";
		cin >> cs135[student];
	}

	cout << "\nThe students got the following grades on the last exam...\n\n";


	//This loop displays the results that you typed in for each student.
	//The loop starts off with studend #0 and goes up to 10.
	for(student = 0; student < 10; student++)
		cout << "Student Number " << student << " got a " << cs135[student] << endl;

	getch();

	return 1;
}