Category: C
https://www.youtube.com/watch?v=zlDhmieiYwA
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…
Divide a number by 10 will give you a digit as int sample: 256/10=25.6==25 25/10=2.5==2 256%10=6 25%10=5…
Recent Comments