grades - else if (a<=79) cout<<"your grade is

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; void main (); { int a; cout<<"What is your grade in programming class?"<<endl; cin>>a; if (a<=59) cout<<"your grade is F."<<endl; else if (a<=69) cout<<"your grade is D."<<endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else if (a<=79) cout<<"your grade is C."<<endl; else if (a<=89) cout<<"your grade is B."<<endl; else if (a<=100) cout<<"your grade is A."<<endl; }...
View Full Document

This note was uploaded on 07/27/2011 for the course COL 201 taught by Professor Magtibay during the Winter '10 term at De La Salle Lipa.

Ask a homework question - tutors are online