Category: Programming

11
May
2017

Modulo in Details

We can easuly get a range of output value after mod: Code: for 100 here print from…

10
May
2017

Iteration Technique in C With Rand and Time Function

code: #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { int k,i,t; t=time(NULL); srand(t); for(i=1; i<=10; i++) { k=rand()%1000; printf(“%d\n”,k);…

10
May
2017

Continue Explained

code: #include<stdio.h> int main(){ int ; for(count=1;count<=100;count++){ if(count%2==0) continue; //continue mane erpore ja ase setar porer ongsjo…

10
May
2017

Break From The Loops !

code: #include<stdio.h> int main() { int i,count; char ch; for(count=1; count<=100; count++) { printf(“count = %d\n”,count); printf(“Do…

10
May
2017

For Loop Tricks Difference

Code: #include<stdio.h> int main() { int n,sum,i; printf(“Enter here:”); scanf(“%d”,&n); sum=0; for(i=1; i<=n; sum=sum+i,i++) printf(“%d\n”,sum); return 0;…

10
May
2017

For Loop Tricks

For Loop Tricks: #include<stdio.h> int main() { int i; i=1; for(printf(“Hi\n”);i<=5;printf(“Dave\n”)){ printf(“Hello World\n”); i++; } return 0;…