Write a program that reads in two integers and prints which value is larger
1
Expert's answer
2012-09-28T08:56:45-0400
#include<iostream.h>
int q, p; void main(){ cout<<"Enter the first integer: "; cin>>q; cout<<"Enter the secondt integer: "; cin>>p; if (p>q) cout<<"The second integer is larger.\n"; if (p<q) cout<<"The first integer is larger.\n"; if (p==q) cout<<"The given integers are equal.\n"; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment