কিছু প্রোগ্রাম example হিসেবে দেওয়া হল :
EXample :1
যতক্ষণ B না পাবে ততক্ষণ printf করবে ।

Example 2:

Example 3:

EXample :1
যতক্ষণ B না পাবে ততক্ষণ printf করবে ।
#include<stdio.h>
int main()
{
char ch[10];
int i=0;
ch[0]='E';
ch[1]='W';
ch[2]='U';
ch[3]='B';
ch[4]='A';
ch[5]='N';
ch[6]='G';
ch[7]='L';
ch[8]='A';
while(ch[i]!='B')
{
printf("%c",ch[i]);
i++;
}
}
Example 2:
#include<stdio.h>
int main()
{
char ch[10];
int i=0;
ch[0]='E';
ch[1]='W';
ch[2]='U';
ch[3]='\0';
ch[4]='A';
ch[5]='N';
ch[6]='G';
ch[7]='L';
ch[8]='A';
printf("%s",ch);
}
Example 3:
#include<stdio.h>
int main()
{
char ch[100]="ewu bangla";
int i;
printf("%c",ch[5]);
return 0;
}
No comments:
Post a Comment