01:00:00
TSDK-097 - 2. Write a program to find the maximum of two numbers.#include<iostream.h>using namespace std;int main(){ int a,b; cout<<"Enter the values of a and b:"; cin>>a>>b; if(a>b) { cout<<"a is greater than b"<<endl; } else { int max(int a, b); cout<<(a>b? a : b);<<endl int main() return 0;} cout<<"b is greater than a"<<endl; } return 0;}// 2. Write a program to find the maximum of two numbers.#include<iostream.h>using namespace std;int main(){Z:using namespace com; int max(int a, b); for x in range(num:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in range(num:I:using namespace com;for x in rangeĂint max(int a, b);cout<<(a>b? a : b);<<endlint main()return 0;}#include<iostream.h>using namespace std;int main(){Z:using namespace com; int max(int a, b); cout<<"Enter the values of a and b:"; cin>>a>>b; if(a>b) { cout<<"a is greater than b"<<endl; } else { cout<<"b is greater than a"<<endl; } return 0;}#include<iostream.h>using namespace std;int main(){Z:using namespace com; int max(int a, b); cout<<"Enter the values of a and b;" cin>>a>>b; if(a>b) { cout<<"a is greater than b"<<endl; } else { cout<<"b is greater than a"<<endl; } return 0;}#include<iostream.h>using namespace com;int max(int a, b);cout<<"Enter the values of a and b:";cin>>a>>b;if(a>b){ cout<<"a is greater than b"<<endl;}else{ cout<<"b is greater than a"<<endl;}return 0;}#include<iostream.h>using namespace com;int max(int a, b);cout<<"Enter the values of a and b:";cin>>a>>b;if(a>b){ cout<<"a is greater than b"<<endl;}else{ cout<<"b is greater than a"<<endl;}return 0;}#include<iostream.h>using namespace com;
2018年1月23日