Contact : +88 01840-723661

|

Email : info@jakafind.com

C Programming Function Practice

C Programming Function Practice

Problem – 01

#include <stdio.h>
int main() {
printf("Hello World!");
return 0; }

Problem – 02

#include <stdio.h>
int main() {
printf("Hello\nWorld!");
return 0; }

Problem – 03

#include <stdio.h>
int main() {
printf("\"Hello World!\"");
return 0; }

Problem – 04

#include <stdio.h>
int main() {
int a=10,b;
printf("Enter a Number: ");
scanf("%d",&b);
a=10+b;
printf("Changing Value = %d\n",a);
return 0; }

Problem – 05

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 06

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 07 (Assignment Operator)

#include <stdio.h>
int main() {
int a=10,b=3;
printf("Output = %d\n",a-=b);
return 0; }

Problem – 08

#include <stdio.h>
#define Pi 3.14159;
int main() {
float rad=6, area;
area = Pi*pow(rad,2);
printf("Area = %.2f \n", area);
return 0; }

Problem – 09

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 10

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 11

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 12

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 13

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 14

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 15

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 16

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 17

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 18

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 19

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 20

#include <stdio.h>

int main() {

printf(“Md Jakaria Nur!\n”);
return 0; }

Problem – 21

#include <stdio.h>

int main() {
float a,b, sum, sub, mul,dev;
printf(“Enter First number: “);
scanf(“%f”, &a);
printf(“Enter Second number: “);
scanf(“%f”, &b);
sum=a+b;
sub=a-b;
mul=a*b;
dev=a/b;
printf(“The Two Number Addition is: %.4f\n”, sum);
printf(“The Two Number Substrction is: %.4f\n”, sub);
printf(“The Two Number Multification is: %.4f\n”, mul);
printf(“The Two Number Divided is: %.4f\n”, dev);
return 0;
}

Problem – 22

#include <stdio.h>

int main() {
float a,b,c, avr;
printf(“Enter Three number: “);
scanf(“%f %f %f”, &a, &b, &c);
avr=(a+b+c)/3;

printf(“The Floating Average Number is: %.4f\n”, avr);
return 0;
}

Problem – 23

#include <stdio.h>

int main() {
float lenth, breadth, area;
printf(“Enter First number: “);
scanf(“%f”, &lenth);
printf(“Enter Second number: “);
scanf(“%f”, &breadth);
area = lenth*breadth;
printf(“The Rectangular Area is: %.4f\n”, area);
return 0;
}

Problem – 24

#include<stdio.h>
int main() {
float C,F;
printf(“Enter Fahrenheit Value: “);
scanf(“%f”, &F);
C = (F-32)/1.8;
printf(“The Centigrade Value : %.2f \n”, C);
return 0;
}

Problem – 25

int main() {
float distance, vulue_cm, vulue_inch, vulue_feet;
printf(“Enter The Distanc Mirpur and Ashulia at Meter: “);
scanf(“%f”, &distance);
vulue_cm = distance*100;
vulue_inch = distance*39.37;
vulue_feet = distance*3.21;
printf(“The Value at cm is: %.2f cm\n”,vulue_cm );
printf(“The Value at inch is: %.2f inch\n”,vulue_inch );
printf(“The Value at feet is: %.2f feet\n”,vulue_feet );

return 0;
}

Problem – 26

#include

int main() {
float salary, basic_salary, house_rant,total_sarary;
printf(“Enter Your Salary:  “);
scanf(“%f”, &salary);
basic_salary = salary*.2;
house_rant = salary*.4;
total_sarary = salary + basic_salary+house_rant;
printf(“Total Salary = %f”,total_sarary);

return 0;
}

 

Thank You!

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *