Computer Science, asked by tameshwarsahu1976, 10 months ago

write a programme in c++to print the following output on bank's cheques ****15999.​

Answers

Answered by Batoekke
0

Answer:

oucidlyfpuf lvyocpucocyou pccupcoycv pucoclu igpgvupcpu pufpucycl ocuoyxiy pclycluccpu clucoyucpu vcpuoycouc pucpcoco

Answered by ridhimakh1219
0

write a programme in c++ to print the following output on bank's cheques ****15999.​

Explanation:

C++ program

#include <iostream>

using namespace std;

int main()

{  

   int num;

   cout << "Enter 6 digits cheque number : ";

   cin >> num;

   if(num>100000 && num<999999)   // check 6 digit cheque number

      cout<<"****"<<num;  //print the cheque number in the desired format

   else

       printf("Invalid cheque number");

   return 0;

}

OUTPUT-1

Enter 6 digits cheque number : 234567                                        

****234567

OUTPUT-2

Enter 6 digits cheque number : 4563

Invalid cheque number

NOTE

The cheque number in bank cheque is always 6 digit number.

It is written in left-hand corner at the bottom of the cheque.

Similar questions