Category: C Refresh
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) {…
Code: #include<stdio.h> int main() { int N1,N2,ch,resi; float resf; do { printf(“\n\n Enter value for operation:”); printf(“\n…
Recent Comments