This media is not supported in your browser
VIEW IN TELEGRAM
program to produce beep sound using C
👍21❤4👎2
program to accept three numbers from the user and print them in ascending and descending order using if else if ladder
👍11❤2
---------------------------------------------------------
Write a program to swap the values of two variables without using third variable
step 1-
a=a+b,the two values entered by user will be added and get stored in a
for ex: if user enter 30 and 10.
a=a+b
a=30+10
a=40.
step 2:
now the value of a is 40 and b is 10
b=a-b
b=40-10
b=30
step 3:
now the value of a is 40 and b is 30
a=a-b
a=40-30
a=10
now value of a=10,b=30
hence numbers got swapped
Write a program to swap the values of two variables without using third variable
step 1-
a=a+b,the two values entered by user will be added and get stored in a
for ex: if user enter 30 and 10.
a=a+b
a=30+10
a=40.
step 2:
now the value of a is 40 and b is 10
b=a-b
b=40-10
b=30
step 3:
now the value of a is 40 and b is 30
a=a-b
a=40-30
a=10
now value of a=10,b=30
hence numbers got swapped
👍14
---------------------------------------------------------------
Write a program to calculate the area and perimeter of the circle
Write a program to calculate the area and perimeter of the circle
👍12
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