244 subscribers
6 photos
3 files
4 links
This group will help beginners to learn programming in C language.

Discussion: @c_coding_discussion
Download Telegram
Channel created
Here you will get codes of DSUS (DSA) and all basic to advanced code of C language
#notice:
Do not copy paste these codes try to understand the concept of the code.
#If you have any query or doubt in c programming you can ask me directly.

Thanks to all for joining the group...
Happy coding :)
1. First C program :-

#include <stdio.h>

int main() {
printf ("Hello World!");
return 0;
}

2. C program to add two integers:-
#include <stdio.h>

int main() {
int a = 5, b = 4;
printf ("sum = %d",(a+b));
return 0;
}
👍1
3. C program to subtraction of two integers:-
#include <stdio.h>

int main() {
int a = 5, b = 4;
int c;
c = a-b;
printf ("subtraction = %d",c);
return 0;
}
👍2
4. C program to add and subtract two integers on user based input:-
#include <stdio.h>

int main() {
int a,b;
int sum =0, sub = 0;
printf("enter two numbers: \n");
scanf("%d %d",&a,&b);
sum = a+b;
sub = a-b;
printf("sum = %d\nsub = %d", sum, sub);
return 0;
}
Programmed by: @miss_rupali
👍2