BCA Programmer
193 subscribers
20 photos
8 videos
26 files
21 links
Download Telegram
Channel created
//C Program to print "Hello World".

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

by @bca_programmer
//C Program for print age

#include <stdio.h>
int main() {
int age = 22;
printf("age is %d", age);
return 0;
}
πŸ‘1
// C Program to Take Age as Input from the user

#include <stdio.h>
int main(){
int age;
printf("Enter Age : ");
scanf("%d", &age);
printf("age is : %d", age);
return 0;
}
πŸ‘1
C program for sum of two integer a,b.

#include <stdio.h>

int main()
{
// Declare variables to store the two integers
int a, b;

// Read the two integers from the user
printf("Enter a : ");
scanf("%d", &a);
printf("Enter b : ");
scanf("%d", &b);

// Calculate the sum of the two integers
int sum = a + b;

// Print the sum to the user
printf("The sum is : %d", sum);

return 0;
}
C program for Calculate Area of square .

#include <stdio.h>

int main() {
int side;
printf("Enter side : ");
scanf("%d", &side);

//"ar" is Area of square

int ar= (side*side);
printf("Area is : %d", ar);
return 0;
}
C program for Calculate Area of Circle .

#include <stdio.h>

int main() {
int radius;

printf("Enter radius : ");
scanf("%d", &radius);

int ar= (3.14*radius*radius);
printf("Area is : %d", ar);
return 0;
}
Guys wait for two days I will post programs
I'm little busy actually ❀️
πŸ‘4❀1πŸ”₯1
Program to accept a number from user and print it’s square & cube.

#include<stdio.h>
#include<conio.h>

void main()
{
int n,sqre,cube;
clrscr();

printf("Enter Number: ");
scanf("%d",&n);

sqre=n*n;
cube=n*n*n;

printf("\nSquare: %d\nCube: %d",sqre,cube);

getch();
}
//Question for all

#include <stdio.h>

int main() {

printf("%d", 10*3/10*3);
return 0;
}



//What will be the output ?
Do u want any programming course?
❀1πŸ”₯1
//Type Declaration Instructions

#include<stdio.h>
int main() {
int age = 22;
int oldAge = age;
int newAge = oldAge + 2;
printf("new age is : %d", newAge);
int rupee = 1, dollar;
dollar = 74;
/*
order of declaration is important - Wrong Declaration Order
float pi = 3.14;
float area = pi * rad * rad;
float rad = 3;
*/

// valid declaration
int age1, age2, age3;
age1 = age2 = age3 = 22;

//invalid
//int a1 = a2 = a3 = 22;
return 0;
}