addition of first 100 natural number in c draw algorithem
Answers
Answered by
0
Answer:
Without Using Loop – Using Formula:
- Without Using Loop – Using Formula:main()
- Without Using Loop – Using Formula:main()int num, sum;
- Without Using Loop – Using Formula:main()int num, sum;printf("\n Enter the number: ");
- Without Using Loop – Using Formula:main()int num, sum;printf("\n Enter the number: ");scanf("%d",&num);
- Without Using Loop – Using Formula:main()int num, sum;printf("\n Enter the number: ");scanf("%d",&num);sum = num*(num+1)/2;
- Without Using Loop – Using Formula:main()int num, sum;printf("\n Enter the number: ");scanf("%d",&num);sum = num*(num+1)/2;printf("\n\n The sum of natural number is: %d\n ", sum);
Explanation:
@darksoul
Attachments:
Similar questions