Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- // your code goes here
- for(int i = 1; i <= 100; i++){
- if(i%3 == 0 and i%5){
- printf("BanglaDesh\n");
- }
- else if(i%3 == 0){
- printf("Bangla\n");
- }
- else if(i%5 == 0){
- printf("Desh\n");
- }
- else{
- printf("%d\n", i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement