C Programming Language || Hands On Coding
12.9K subscribers
139 photos
2 videos
13 links
Hands-on C programming language challenges for beginners. Learn building logic by solving programs.

Owner: @Pradeep_saii
Download Telegram
Program to print Hello World
---------------------------------------------------
Program:
#include<stdio.h>
int main()
{
printf("Hello world");
return 0;
}
---------------------------------------------------
#basicprograms
👍319🙏4
Program to print Hello World in double quotes.
---------------------------------------------------
Program:
#include<stdio.h>
int main()
{
   printf("\"Hello World\"");
    return 0;
}
---------------------------------------------------
#basicprograms
16👍11😁6💩1
Program to print a line in new line.
--------------------------------------------------------
Program:
#include<stdio.h>
int main()
{
   printf("Hello programmers\n");
   printf("Welcome this page\n");
   printf("follow this page\n");
   printf("too many programs will be provided\n");
   printf("In coming days");
   return 0;
}
--------------------------------------------------------
#basicprograms
22👍9💩3👎1
Program to add two numbers
-------------------------------------------------
Program:
#include<stdio.h>
int main()
{ int a,b;
a=19;
b=35;
printf("Sum of %d and %d is =%d",a,b,a+b);
return 0;
}
-------------------------------------------------
#basicprograms
👍169💩3
Program to add two numbers by accepting input from the user:
----------------------------------------------------
Program:
#include<stdio.h>
int main()
{
int a,b,sum;
printf("Enter two numbers:");
scanf("%d%d",&a,&b);
sum=a+b;
printf("sum of %d and %d is =%d",a,b,sum);
return 0;
}
----------------------------------------------------
#basicprograms
👍2310👎2💩1
Program to calculate area of triangle.
-----------------------------------------------------
Program:
#include<stdio.h>
int main()
{  float a,b,area;
    printf("Enter base and height of triangle:");
    scanf("%f%f",&a,&b);
    area=(a*b)/2;
    printf("Area=%.2f",area);
    return 0;
}
-----------------------------------------------------
#basicprograms
👍2915