Header Ads

Header ADS

Namta Lakar program in C

 ai program use kore j kono ghorer namta j kono porjonto lakha ji. r veriable int theke double ba  float kore nile to r sas ni


#include <stdio.h>

int main() {
    while (1) {
        printf("Kon ghorer namta print korte chau?\n");
        int w;
        scanf("%d", &w);

        printf("Kotha theke suru korbo ?\n");
        int s;
        scanf("%d", &s);

        printf("Kon porjonto?\n");
        int l;
        scanf("%d", &l);

        for (int i = s; i <= l; i++) {
            printf("%d X %d = %d\n", w, i, w * i);
        }

        char c;
        printf("Do you want to exit? (y/n)\n");
        scanf(" %c", &c);
        if (c == 'y' || c == 'Y') {
            break;
        }
    }
    return 0;
}


kisu nomuna dilam



bakta try koro bujte parba


No comments

Powered by Blogger.