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
@bca_programmer
#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
@bca_programmer
#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.
@bca_programmer
#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
@bca_programmer
#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
#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
@bca_programmer
#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
👍2🥰1
Draw ironman face using 3 lines of python code
Video link - https://youtube.com/shorts/6viZX7a-93E?feature=share
@bca_programmer
Video link - https://youtube.com/shorts/6viZX7a-93E?feature=share
@bca_programmer
6 month yt premium trick
Channel link - https://t.me/+-0ZvZiuLYnc4YzU1
post link - https://t.me/c/1719665327/2789*
@bca_programmer
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
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
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
https://youtube.com/@zedsecworld
.
@bca_programmer
This media is not supported in your browser
VIEW IN TELEGRAM
Wishing you a very happy and prosperous Ram Navami. May Lord Rama's blessings be with you always and may you achieve great success in all your endeavors. Jai Shri Ram!
FILL THE COMMENTS WITH JAI SHREE RAM❤️ 🚩
🚩 जय श्री राम 🚩
🚩 जय श्री राम
FILL THE COMMENTS WITH JAI SHREE RAM❤️ 🚩
🚩
🚩 जय श्री राम