
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <stdio.h> void main() { int n,i; n=10; i=1; while(n>=1&&i <= 10) { printf("%d \t %d\n",n,i); n--; i++; } } If you face any problem so contact me Thank you&nb...
A blog about programming languages and this Blog specially Create for learning languages like C language,C++ Language, Data Structure and Algorithm.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <stdio.h> void main() { int n,i; n=10; i=1; while(n>=1&&i <= 10) { printf("%d \t %d\n",n,i); n--; i++; } } If you face any problem so contact me Thank you&nb...
1 2 3 4 5 6 7 8 9 10 11 12 13 #include <stdio.h> int main() { int s,i; for(i=1,s=1;i<=10;i++) { s=s*(-1); printf("%d\t",i*s); } return 0; } If you face any problem so contact me Thank youCo...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include <stdio.h> int main() { int c, n, fact = 1; printf("Enter a number to calculate it's factorial\n"); scanf("%d", &n); for (c = 1; c <= n; c++) fact = fact * c; printf("Factorial of %...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include<stdio.h> int main() { int n,i=1; printf("Table of ="); scanf("%d",&n); while(i<10) { i++; printf("%d*%d=%d\n",n,i,n*i); } } If you face any pro...
'for' loop:- for loop executed one or more statements for a specified number of times.This loop is also called Counter controlled loop. it is the most flexible loop.That is why ,it is ...
'do-while' Loop:- do while is an iterative in c language. THis loop executes one or more statements while the given condition is true. In this loop,the c...
'while' Loop:- while loop is the simplest loop of c language. This loop executes one or more statements while the given condition remains true. it is useful when the number of itera...
Loops:- A type of control structure that repeats a statements or set of statements is known as Looping structure.it is also known as iterative or repetitive Structure. In sequential structure, all statements are executed once. On the other hand ,Co...
Create Many Folders For One Click Open Notepad Type MD Space 1 Space 2 Space 3 And Soo On And Save It Folder.Bat Now Open It And Folder Will Bee Created
What is Else IF Statement? Else if statement:- The "else if "statement in C is generally used when need to compare more then one condition. Example:- &nbs...
What is IF else Statement? Ans:- IF else Statement:- C language also lets one choose between two statem...
What is IF Statement? Ans: IF Statement:- If statement gives the user the choice of execuated tp true or skipping it is the expression is evaluated to...
A program Convert Temperature Fahrenheit to centigrade 1 2 3 4 5 6 7 8 9 #include<stdio.h> int main() { float ftemp,ctemp; printf("Enter temperature of city in fahrenheit"); scanf("%f",&ftemp); ctemp=(5.0/9.0)*(ftemp-32); printf("\nThe given temperat...
A Program two location interchange its contents. 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b; printf("Enter a value of a="); scanf("%d",&a); printf("\nEnter value of b="); scanf("%d",&b); printf("\n a=%d\...
Input two nob from user print Sum.product,division and some of square=>a^2+b^2. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include<stdio.h> int main() { int a,b; printf("Enter a value\n"); scanf("%d",&a); printf("Enter 2nd value\n"); scanf(&qu...
Input distance in km from user convert it into Meter 1 2 3 4 5 6 7 8 9 10 11 12 #include<stdio.h> int main() { float km,m; printf("Enter value\n"); scanf("%f",&km); m=km*1000; printf("Km=%f\n",km); printf("Meters=%f",m); } ...
A program 356 value print Reversal i.e 653:- 1 2 3 4 5 6 7 8 9 10 11 12 13 #include<stdio.h> int main() { int n,a,b; n=356; printf("n=%d\n",n); a=n%10; n=n/10; b=n%10; n=n/10; printf("n=%d%d%d",a,b,n); } ...
A program Using % operator 1 2 3 4 5 6 7 8 9 10 11 12 #include<stdio.h> int main() { int n,a,b; n=456; printf("n=%d\n",n); a=n/100; n=n%100; b=n/10; n=n%10; printf("n=%d%d%d",n,b,a); } If you face any problem so contact me Thank you Co...
A program swap without using third variable 1 2 3 4 5 6 7 8 9 10 11 12 13 #include<stdio.h> int main() { int a,b; a=4; b=6; printf("a=%d\nb=%d\n",a,b); printf("---------------\n"); a=a+b; b=a-b; a=a-b; printf("a=%d\nb=%d",a,b); } ...
A program Swap using third variable 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include<stdio.h> int main() { int a,b,t; a=4; b=6; printf("a=%d\nb=%d\n",a,b); printf("---------------\n"); t=a; a=b; b=t; printf("a=%d\nb=%d",a,b); } I...
A program Convert it into c program "a^3+b^3+c^3+ab" 1 2 3 4 5 6 7 8 9 #include<stdio.h> int main() { int a,b,c; a=2; b=6; c=8; printf("a^3+b^3+c^3+ab=%d",a*a*a+b*b*b+c*c*c+a*b); } If you face any problem so contact me Thank you contact :- https:...
A program Convert it into c program "a^2 + b^2 +ab and display its result. 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a,b; a=2; b=6; printf("a^2+b^2+ab=%d",a*a+b*b+a*b); } If you face any problem so contact me Thank you Contact :- https://www...
A program Convert it into c program "a+b^2 c=a+(b*b)*c" 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b,c,s; a=2; b=6; c=8; s=a+b*b*c; printf("a+(b*b)*c=%d",s); } 2:A program Convert it into c program "a+b^2 c=a+(b...
A program Input base and power is 4 print output. 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int b,p,m; printf("Enter base\n"); scanf("%d",&b); p=4; m=b*b*b*b; printf("%d^%d=%d",b,p,m); } ...
A program that 2^4=? print output on Screen 1 2 3 4 5 6 7 8 9 #include<stdio.h> int main() { int b,p,m; b=2; p=4; m=b*b*b*b; printf("%d^%d=%d",b,p,m); } &nbs...
A Program Multiplication of three Variable and result print on Screen: 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b,c,m; a=7; b=6; c=4; m=a*b*c; printf("%d*%d*%d=%d",a,b,c,m); } ...
Dev C++ Free Software teachcoding.blogspot.com Dev-C++ is a full-featured IDE for the C,Cpp programming language. It uses Mingw port of GNU Compiler Collection Dev c++ Features are Follows : Support GCC-based compilers Integrated debugging (using GDB) Project Manager Customiz...
A program Input Roll,Marks,Grade and print on screen: 1 2 3 4 5 6 7 8 9 10 11 12 13 #include<stdio.h> int main() { int Rollno; float Marks; char Grade; Rollno=30; Marks=50.6; Grade='D'; printf("Rollno=%d\n",Rollno); printf("Marks=%f\n",Marks); prin...
Calculate and print "6+4=10" result on screen 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a,b,s; a=6; b=4; s=a+b; printf("%d+%d=%d",a,b,s); } Best of Luck
A program Calculate and print "6*4-9=?" the result on screen. 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a,b,c; a=6; b=4; c=9; printf("%d*%d-%d=%d",a,b,c,a*b-c); } Best of Luck
Enter any two nob and print Credit goes to: Kamran Gee 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a,b; printf("Enter two Number "); scanf("%d %d",&a,&b); printf("\na= %d ,b= %d",a,b); } ...
Sum,Difference,Multiplication all in one 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b; a=6; b=4; printf("%d+%d=%d\n",a,b,a+b); printf("%d-%d=%d\n",a,b,a-b); printf(...
Sum of three variable: 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b,c,s; a=8; b=6; c=4; s=a+b+c; printf("%d+%d+%d=%d",a,b,c,s); }
Find Difference of two variable: 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a,b; a=6; b=2; printf("%d-%d=%d",a,b,a-b); } Find Difference of three variable: 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { int a,b,c,d; a=8; b=6; c=4; ...
program using"%d" & declare value:- 1 2 3 4 5 6 7 8 #include<stdio.h> int main() { int a; a=4; printf("%d\n",a); printf("a=%d",a); }
C program using "\n" 1st Program:- 1 2 3 4 5 #include<stdio.h> int main() { printf("*\n**\n***\n****"); } 2nd Program:- 1 2 3 4 5 6 7 8 9 10 #include<stdio.h> int main() { printf("****\n"); printf("Hello\n"...
In this post you can easily find C programs in this list you can Select Program and then source Code are there if any program are not there then post a comment with name i will update in 24 hour INSHALLAH Programs List(Click on any pr...
Request zone Here you can request for C program,C++ program,Opp,Algorithm,Data structure,Also Software,android games,Apps,Books and much more via a post comment. your Request will upload in 24 hour. INSHALLAH. Regards, &nb...
Cue Club (full version) free download Cue Club Cheat Codes: Enter any Cue Club chat room and type these fun cheats into the dialogue box. Re-enter the cheat to turn it off. Note, these will not work with the trial version. --------------------- ccc>gravity {...
For Latest Version IDM Download Click here Download latest version Older version Older Version IDM 6.27: Build 3 olderVersion IDM 6.28:build 10 Click here to Download ...