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

c Program (Mdu File )

The document contains multiple C programs demonstrating basic functionalities such as printing 'Hello World', displaying a fixed age, taking user input for age, and performing arithmetic operations. Each program includes the necessary code and comments indicating where to write the code. The examples illustrate fundamental programming concepts in C.

Uploaded by

ravisiwach366
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 views4 pages

c Program (Mdu File )

The document contains multiple C programs demonstrating basic functionalities such as printing 'Hello World', displaying a fixed age, taking user input for age, and performing arithmetic operations. Each program includes the necessary code and comments indicating where to write the code. The examples illustrate fundamental programming concepts in C.

Uploaded by

ravisiwach366
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

PROGRAM 1

PROGRAM TO PRINT THE HELLO WORLD

INPUT :

#include <stdio.h>
int main() {
// Write C code here

printf("hello world ");


return 0;
}

Output:
PROGRAM 2
PROGRAM TO PRINT AGE ?

INPUT :
#include <stdio.h>

int main() {
// Write C code here
int age = 56;
printf ("My age is %d",age);

return 0;
}

Output:
PROGRAM 3
write a program to takr input of age and print

Input :
#include <stdio.h>
int main() {
// Write C code here
int age;
scanf("age is %d", age );
printf("print my age is ");
return 0;
}

Output:
program 4

Program to perform all the airthmatic operation in c

Input :
#include <stdio.h>

int main() {

int a, b;

printf("Enter two numbers: ");


scanf("%d %d", &a, &b);
printf("\nAddition = %d", a + b);
printf("\nSubtraction = %d", a - b);
printf("\nMultiplication = %d", a * b);

return 0;
}

Output:

You might also like