April 27, 2024

Telugu Tech Tuts

TimeComputers.in

C language Tutorial for beginners in Telugu For loop2 Part 22

C in Telugu

In computer programming, C language is very effetive. In the sense, using ‘c’, we can see the hard disk address with the help of pointers. I will publish some simple pointer progarammes later.

#include

#include

void main()

{

clrscr();

int i,sum=0;

for(i=1;i<=10;i=i+1) // starting for loop, this loop will execute until the value of i reaches 10. { sum=sum+i; // add the values of sum with i and save it to sum itself. } printf("Sum of first 10 natural numbers is %d", sum); getch(); }