Program to print Hello World
---------------------------------------------------
Program:
#include<stdio.h>
int main()
{
printf("Hello world");
return 0;
}
---------------------------------------------------
#basicprograms
---------------------------------------------------
Program:
#include<stdio.h>
int main()
{
printf("Hello world");
return 0;
}
---------------------------------------------------
#basicprograms
👍31❤9🙏4
Program to print Hello World in double quotes.
---------------------------------------------------
Program:
#include<stdio.h>
int main()
{
printf("\"Hello World\"");
return 0;
}
---------------------------------------------------
#basicprograms
---------------------------------------------------
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
--------------------------------------------------------
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
-------------------------------------------------
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
👍16❤9💩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
----------------------------------------------------
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
👍23❤10👎2💩1