#include <stdio.h> #include<conio.h> main() int A-5, S-0, N; printf ("Enter the last value = "); scanf (%d", N); do S=S+A; A=A+5; while (A = N) print ("total=%d", S);
1. #include#includemain(){int A-5, S-0, N;printf ("Enter the last value = ");scanf (%d", N);do{S=S+A;A=A+5; }while (A = N)print ("total=%d", S);}
#include <stdio.h> #include<conio.h> main() int A-5, S-0, N; printf ("Enter the last value = "); scanf (%d", N); do S=S+A; A=A+5; while (A = N) print ("total=%d", S); | Suva Ai