Download Study material, Syllabus, Question Papers of DE, BE, ME, MBA, MCA, of Gujarat Technological University (GTU)
If you have study material, please share with us. Send mail on theminutestudy@gmail.com
Write a program to find the sum of first five numbers
#include<stdio.h> #include<conio.h> int main() { int no,sum=0; no=1; while(no<=5) { sum=sum+no; no++; } printf("sum is %d",sum); }
No comments:
Post a Comment