Category: Language
code: #include<stdio.h> #include<string.h> int main() { int i; char str[80]; printf(“Enter a string:”); scanf(“%[^\n]”,str); //for(i=0; str[i]!=’\0′; i++);…
String Input Take Without any gets function just scanf is enough for taking any input withlout gets function #include<stdio.h>…
Vid: code: #include<stdio.h> int main() { int x[4][3]; int i,j; for(i=0; i<4; i++) { for(j=0; j<3; j++)…
We can easuly get a range of output value after mod: Code: for 100 here print from…
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…
Recent Comments