BCA Programmer
194 subscribers
20 photos
8 videos
26 files
21 links
Download Telegram
C program to calculate the sum of all numbers between 5 and 50 (including 5 & 50)


#include <stdio.h>
int main(void) {

int sum = 0;
for(int i=5;i<=50;i++)

sum = sum + i; //or we can use sum += i
{
printf("%d is the answer\n", sum);
}
return 0;
}
Write a C program that reads in three integers and prints "equal" if all three are equal, and "not equal" otherwise.

#include <stdio.h>
int main(){
int a,b,c;
printf("Enter number : ");
scanf("%d%d%d", &a,&b,&c);
if(a == b && b == c){
printf("Equal\n");
}
else {
printf("Not Equal\n");
}
return 0;
}
C program to print no is prime or non prime


#include <stdio.h>

int main() {
int n, i;
printf("Enter a positive integer: ");
scanf("%d", &n);
for (i = 2; i < n; i++) {
if (n % i == 0) {
printf("%d is not a prime number\n", n);
return 0;
}
}
printf("%d is a prime number\n", n);
return 0;
}
👍2🔥1
print Hello world using function


#include <stdio.h>
//decleration /prototype
void printhello();

int main() {
printhello(); //function call
return 0;
}
//function decleration
void printhello(){
printf("Hello world\n");
}


@bca_programmer
it will print Hello world 4 times because we called function 4 times

#include <stdio.h>
void printhello();

int main() {
printhello();
printhello();
printhello();
printhello();
return 0;
}
void printhello(){
printf("Hello world\n");
}


@bca_programmer
print Namaste if user is Indian else print 'Bonjour' if user is French.


#include <stdio.h>
void Namaste();
void Bonjour();

int main() {
printf("Enter 'f' for french 'i' for indian : ");
char ch;
scanf("%c", &ch);
if(ch == 'i'){
Namaste();
}
else {
Bonjour();
}
return 0;
}
void Namaste(){
printf("Namaste\n");
}
void Bonjour(){
printf("Bonjour\n");
}


@bca_programmer
write a C program to sum two integer using function

#include <stdio.h>

int sum(int a,int b);

int main(){
int a, b;
printf("enter a : ");
scanf("%d", &a);
printf("enter b : ");
scanf("%d", &b);

int s = sum(a,b);
printf("%d is sum: ", s);
return 0;
}
int sum(int a,int b){
return a+b;
}


@bca_programmer
🕊1🤡1🤣1
drive-download-20230103T181420Z-001.zip
4.2 MB
C language notes by Apna College❤️

Enjoy learning


@bca_programmer
👍1🥰1🕊1
#include <stdio.h>

void myfunction(char name[]){

printf("Hello %s\n", name);

} int main(){

myfunction("Johny Sins");

myfunction("Shizuka"); myfunction("Lisa");

myfunction("Rose");
return 0;

}


What will be the output?
Comment fast


@bca_programmer
😁2👍1🔥1
Print table of n number in format 2 * 1 = 2

#include <stdio.h>

int main(void) {

int n, table;

printf("Enter a number: ");

scanf("%d", &n);

printf("Table of %d is: \n");

for(int i=1;i<=10;i++)
{
table = n*i;

printf("%d * %d = %d\n", n,i ,table);

}
return 0;

}

@bca_programmer
👍2
Phone number tracing with python program

Post link - https://t.me/CodingInsights/432

@bca_programmer
👍2🥰1
Build Undetectable Malware Using C Language Ethical Hacking.mp4
459.4 MB
Build Undetectable Malware using C language Ethical Hacking



@bca_programmer
👍1
Draw ironman face using 3 lines of python code

Video link - https://youtube.com/shorts/6viZX7a-93E?feature=share

@bca_programmer
🤔1
6 month yt premium trick

Channel link -
https://t.me/+-0ZvZiuLYnc4YzU1

post link - https://t.me/c/1719665327/2789*

@bca_programmer
Subscribe my  "Zed Sec"  YouTube channel

And

Check Facebook ban method on channel

https://youtube.com/@zedsecworld
|• All Type of Campus Placement Previous Material •|

Contains:- 100+ Companies

SIze 30 GB+

👊LINK-
https://drive.google.com/drive/mobile/folders/1SkCOcAS0Kqvuz-MJkkjbFr1GSue6Ms6m

Posted by - @stranger_0_0
👍1
Check trick to see locked gallery or file manager on yt channel

https://youtube.com/@zedsecworld


.

@bca_programmer
DBMS_Notes.pdf
274.1 KB
DBMS notes by Apna College

@bca_programmer