0% found this document useful (0 votes)
1 views9 pages

Variables Problem Solving

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views9 pages

Variables Problem Solving

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

সহজ ভাষায়

C Programming

Variables সংক্রান্ত
Problem Solving
ললাকাল Variable

#include <stdio.h>
int main() {
int A = 20;
printf("The number is: %d\n",A);

return 0;
}
ললাবাল Variable

#include <stdio.h>
int A = 20;
int main() {
printf("The number is: %d\n",A);
return 0;
}
Data সংরক্ষণ এবং পররবর্তন

#include <stdio.h>
int main() {
int A = 10;//initializing
printf("The value of A is:%d\n",A);
A = 20;//update
printf("The value of A is:%d\n",A);
return 0;
}
ফাংশননর মনযে রিনে Value পাঠাননা
#include <stdio.h>
void printNumber(int num);
int main() {
int x = 10;
printNumber(x);
return 0;
}
void printNumber(int num)
{
printf("The number is %d\n", num);
}
ফাংশননর মনযে রিনে Value পাঠাননা
#include <stdio.h>
void printName(char* name);
int main() {
char myName[] = "Nobel";
printName(myName);
return 0;
}
void printName(char* name) {
printf("My name is %s\n", name);
}
লরাগ্রাম ললা Control করা

#include <stdio.h>
int main() {
int x = 10;
if (x > 5) {
printf("x is greater than 5\n");
} else {
printf("x is less than or equal
to 5\n");
}
return 0;
}
কনরফগানরশন লসট ংস Store করা
#include <stdio.h>
int main() {
int screenWidth = 800;
int screenHeight = 600;
float scaleFactor = 1.5;

printf("Screen resolution: %dx%d,


Scale factor: %f\n", screenWidth,
screenHeight, scaleFactor);

return 0;
}
#include <stdio.h>
int main() {

"Thank You"
printf(

);
return 0;
}

You might also like