/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a=1,sum=0; for(;a<=100;a+=2) { sum+=a; printf("%d ",sum); } for(a=1;a<=100;a++) { sum=a*a; printf("%d*%d=%d ",a,a,sum); } }