Category: C Refresh
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);…
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…
code: #include<stdio.h> int main() { int i,count; char ch; for(count=1; count<=100; count++) { printf(“count = %d\n”,count); printf(“Do…
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;…
code: #include<stdio.h> int main() { int number,sum=0; printf(“Enter a positive number, negative to terminate:”); scanf(“%d”,&number); while(number>=0) {…
Conditional Question: source: http://101cproblems.com/problem-25/ Problem 25: Coordinate Take two integers indicating the x and y coordinate of…
Recent Comments