Advertisement
arfin97

Code Sprint

Feb 10th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     // your code goes here
  6.     for(int i = 1; i <= 100; i++){
  7.         if(i%3 == 0 and i%5){
  8.             printf("BanglaDesh\n");
  9.         }
  10.         else if(i%3 == 0){
  11.             printf("Bangla\n");
  12.         }
  13.         else if(i%5 == 0){
  14.             printf("Desh\n");
  15.         }
  16.         else{
  17.             printf("%d\n", i);
  18.         }
  19.  
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement