Spread the page link ***Write C prog code to find GCD of two integers. ***Write C prog code to find the area of triangle. ***Write C prog code to show a number positive or negative. ***Write C prog code to find the largest number among three numbers a,b,c. ***Write C […]
Read moreCategory: C Programming Code
C Programming Code on Series,Leap year,LCM
Spread the page link *** To Solve 1+2+3+…….+n write C prog code using different Loop. USING FOR LOOP——— #include main() { int n,k,sum=0; printf(“Enter your number “); scanf(“%d”,&n); for(k=1;k<=n;k=k+1) { sum=sum+k; } printf(“The result is %d”,sum); } *** To Solve 1+2+3+…….+100 write C prog code using different Loop. #include main() […]
Read more