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: