Category: A ll Codes
write a program which will take N integer from user and print all the numbers between N…
Problem: **** *** ** * code: #include<stdio.h> int main() { int i,j; for(i=1; i<=4; i++) { for(j=i;…
Another easy understandable tut is in this link: http://zakilive.com/2017/05/12/check-the-number-is-prime-or-not-in-c-easy-and-details-explanation/ Code: #include<stdio.h> int main() { int i,flag,N; flag=0; printf(“eNter…
code: series: 1/1+1/2+1/3+….+1/N #include<stdio.h> int main() { int N,i; float sum; printf(“Enter N:”); scanf(“%d”,&N); sum=0; i=1; do{…
Code: int main() { int N,r,T; r=0; printf(“Enter number to check: “); scanf(“%d”,&N); T=N; do{ r=(r*10)+(T%10); T=T/10;…
Code: With While Loop #include<stdio.h> int main() { int N,r,sum; sum=0; printf(“Give a number:”); scanf(“%d”,&N); while(N!=0) {…
Recent Comments