Thursday, May 6, 2021

CPP Slip 1

 

#include<iostream.h>
#include<conio.h>
class max
{
public:
inline int maximum(int a,int b)
{
return a>b?a:b;
}
};
void main()
{
int a,b;
max m;
clrscr();
cout<<“\nEnter two number: “;
cin>>a>>b;
cout<<“\nNumber 1st: “<<a<<endl;
cout<<“\nNumber 2nd: “<<b<<endl;
cout<<“\nMaximum number is: “<<m.maximum(a,b)<<endl;
getch();
}

No comments:

Post a Comment

Slip 10. Write a jQuery code to make first word of each statement to bold.

  Slip 10. Write a jQuery code to make first word of each statement to bold.  <!DOCTYPE html> <html>   <head>     <scri...