Get your hands dirty
The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages: Print the wo…
The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages: Print the wo…
What Is C? C is a highly flexible and adaptable language. Since its creation in 1970, it's been used for a wide variety of programs including fir…
#include<stdio.h> void main() { int arr[10], i, j, k, size; printf("\nEnter array size : "); scanf("%d", &size);…
#include<stdio.h> #define pi 3.14 void main() { int r; float p; printf("Enter the value of radius: "); scanf("%d…
#include<stdio.h> #define pi 3.14 void main() { int r; r=7; printf("Perimeter=%f",2*pi*r); } Output Print Download…
#include <stdio.h> void main() { int i, j, k; for(i=5;i>=1;i--) { for(k=5;k>=i;k--) { printf(" &quo…
#include <stdio.h> void main() { int i, j, k; for(i=5;i>=1;i--) { for(j=1;j<=i;j++) printf("*"); printf(&quo…
#include <stdio.h> void main() { int i, j, k; for(i=5;i>=1;i--) { for(j=1;j<i;j++) { printf("…
#include <stdio.h> void main() { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { printf("*"); } printf(&q…
#include<stdio.h> int main() { int num,r,c; printf("Enter number of rows/columns: "); scanf("%d",&num); for(r=1; r&…
#include<stdio.h> void main() { int n,i,j,flag; printf("\n\nEnter the limit\t:"); scanf("%d",&n); printf("\nTh…
#include<stdio.h> void main() { int n1,n2,g; printf("Enter Numbers (n1, n2) : "); scanf("%d %d",&n1,&n2); g=n1&…
#include<stdio.h> void main() { int t,i,m=0,n=1,f=1; printf("\n\nEnter the number of terms:"); scanf("%d",&t); prin…
#include<stdio.h> void main() { int i=1; do{ printf("%d\n",i); i++; }while(i=100); } Output Print D…
#include <stdio.h> void main() { int r; float pi=3.14; r=7; printf("Perimeter=%f",2*pi*r); } Output Print Downloa…
#include <stdio.h> void main() { char in; printf("Enter Character: "); scanf("%c", &in); if(in>=65&&…
#include<stdio.h> void main() { char chl='a'; char chu='A'; int i; printf("\n==========================="); for(…
#include<stdio.h> #define PI 3.142 void main() { float r,a,c; printf("\nEnter the radius of circle:\t"); scanf("%f",&…
#include<stdio.h> int OR(int,int); int AND(int,int); int XOR(int,int); int NOT(int); void main() { int a,b,ch,o; printf("\n-:MENU:-\n1.A…
#include<stdio.h> void main() { float p; float ir,t; float in; printf("Principle amount : "); scanf("%f",&p); …